Question: Matlab grader keeps telling me that y has an incorrect value ,and also the title comes up as incorrect. Can you help me with that

Matlab grader keeps telling me that y has an incorrect value ,and also the title comes up as incorrect. Can you help me with that . Thats the only two that I have wrong. Please use the original script that they gave in the problem in the matlabgrader and build on it.
\%Get input - Load the input noise vector from the file load ('noisydata.mat', 'x'); N= % But you need to handle the case of length of x is or 1 in a special way to prevent errors. y(1:N)=x(1:N); \%Do the magic if x is not empty if isempty (x) \%Use a for loop to apply the average filter according to the specification to the array and assign the results to y. \%Draw 2 plots on one window for original noise signal and the smoothed one respectively. \%Generate/get the sample number (index) of the vector x or y idx= figure (1); \%Plot x vs. idx in subplot 1 \%plot y vs. idx in subplot 2 end Is for loop used to calculate the result? Is Idx correct? Plotted and annotated the data? The submission must contain the following functions or keywords: title ENGR 1731 Computing for Engineers Spring 2023 > Project 6 - Iteration - for loops and key to Solve a loop Problem > Smooth a noise signal 4 solutions submitted (max: Unlimited) | View my solutions on plot and subplot. The program should also include inline error handling for the case where the array x is empty. If the array x is empty, the result y should be an empty array
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
