Question: MATLAB Solve the following problems in matlab: Using for loop and while loop their sum. 1. Write a matlab program to find the sum of

MATLAB MATLAB Solve the following problems in matlab: Using for loop and while

Solve the following problems in matlab: Using for loop and while loop their sum. 1. Write a matlab program to find the sum of first 10 natural numbers? 2. Write a matlab program to read 10 numbers from keyboard and find their sum and average 3. Write a matlab program to display the n terms of odd natural number and 4. Write a matlab program to display the cube of the number up to given an Integer. 5. Write a matlab program to display the pattern like right angle triangle using an asterisk Your output: Humber of Rous--->> 6. Write a matlab program to display the pattern like night angle triangle with a number Your output: Enter the rows--->5 1 12 123 1234 12345 7. Write a matlab program to calculate the factorial of a given number. 8. Write a matlab program to display the n terms of square natural number and their sum. Your output: Input the number of terms: 5 Expected Output: The square natural upto 5 terms are :1 4 9 16 25 The Sum of Square Natural Number upto 5 terms = 55 10. 9. Write a matlab program which prints numbers 1 to 10 using while loop. Write a matlab program to print ODD numbers from 1 to N using while loop Write a matlab program to read an integer and print its multiplication table using while loop 11

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!