Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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,

image text in transcribedhow 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

SQL Database Programming

Authors: Chris Fehily

1st Edition

1937842312, 978-1937842314

More Books

Students also viewed these Databases questions