Question: MATLAB Please explain with steps. I am unsure how to apply the three if statements before the last end. 28. Given the function mystery1 below,
MATLAB
Please explain with steps. I am unsure how to apply the three if statements before the last end.

28. Given the function mystery1 below, what is the value of y after the following commands are executed? x [143 2]; >> [y1, y2, y3]mystery1 (x); >> y-max( 1); function varargotmystery1 (in) a in 1); b-a; c-a; for i 2:length(in) if (in(i) c) if (nargout>0); varargout1)-a; end if (nargout 1); varargout(2)-b; end if (nargout>2); varargout3)-c; end
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
