Question: how would i write this in matlab? 3. Write a program that will generate the numbers from 30 to -10 with a step of -5,
how would i write this in matlab?3. Write a program that will generate the numbers from 30 to -10 with a step of -5, then the program will use "while loop" to sum the positive numbers generated. Display the sum. Run your program and verify that it operates correctly. Hint: the sum of 30, 25, 20, 15, 10 and 5 is 105. 4. Modify the program of above exercise (exercise 3), use "if, else statement" to sum the positive numbers. Run your program and verify that it operates correctly
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
