Question: 3.6. Please provide a flowchart and solve the following in Matlab live-script and share the correct code. Use the editor window to type in the
3.6. Please provide a flowchart and solve the following in Matlab live-script and share the correct code.

Use the editor window to type in the code for the function sum_function and save it in a function m-file called sum_function.m. We can call the function in a similar way to the script but now we must pass an input argument using brackets. Check that the function returns the correct output for the sum of the first 1000 integers, i.e. > value = sum_function (1000) value = 500500 Show how you can find the sum of the first 20,50, and 300 integers by simply modifying how you call the function at the command window (you do not need to adjust the function's m-file!)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
