Question: Problem 1 / MatlabGrader Develop a Matlab function mySquares that calculates the first N squares. As input, the function shall take the positive integer number

Problem 1/ MatlabGrader
Develop a Matlab function mySquares that calculates the first N squares. As input, the function shall take the positive integer number N and as output the function shall give a column vector vec(y) of length N containing yi-i2 for i=1dotsN.
Problem 1 required submission:
Well commented function source code submitted to Matlab Grader;
Problem 2/ MatlabGrader & Gradescope
Write a script that generates a plot of the first 20 squares vs i. Use your function from problem 1 to generate the data to plot.
Notes for the MatlabGrader script submission:
Comment out clear or clear all in your script when submitting to MatlabGrader.
Generate and store the figure handle examFig1 for the graph before doing any plotting commands, using examFig1= figure (1);
Properly label both axis using the appropriate variable names, i.e.,(i,y).
Do not include the source code for mySquares in your submission. A correct version is used automatically on Matlab Grader.
Problem 2 required submission:
Well commented script source code submitted to Matlab Grader;
Printout of well commented script you coded included in your Gradescope submission;
Printout of well annotated graph in your Gradescope submission;
 Problem 1/ MatlabGrader Develop a Matlab function mySquares that calculates the

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!