Question: with a Matlab program 3.Write a Matlab program that prompts the user to enter an integer N then using for loop, preforms the sum equation

with a Matlab program
3.Write a Matlab program that prompts the user to enter an integer N then using for loop, preforms the sum equation below. N i=1 (2i2 71)? The program should print all individual results of the above equation from i = 1 to N, then print the total sum on a separate line. Note: Separate components of the sum can be calculated as follows: when i = 1: Sum = (2 7)2 = 25 when i = 2: Sum = (2 x 22 7 x 2)2 = 36 when i = 3: Sum = (2x 32 7 * 3)2 = 9 and so on... Sample output - User input indicated in bold Enter an integer N: 11 25 36 9 16 225 900 2401 5184 9801 16900 27225 The total sum is: 62722 Sample output - User input indicated in bold Enter an integer N: 55 25 36 9 16 225 900 2401 5184 9801 16900 27225 41616 61009 86436 119025 160000 210681 272484 346921 435600 540225 662596 804609 968256 1155625 1368900 1610361 1882384 2187441 2528100 2907025 3326976 3790809 4301476 4862025 5475600 6145441 6874884 7667361 8526400 9455625 10458756 11539609 12702096 13950225 15288100 16719921 18249984 19882681 21622500 234 74025 25441936 27531009 29746116 32092225 The total sum is: 357537796
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
