Question: matlab 4. Write the screen display in the command window in the space provided for the following script and associated functions. Show all the steps.
matlab4. Write the screen display in the command window in the space provided for the following script and associated functions. Show all the steps. Credit only given for work shown. [5] script clc; clear; X = 5 y = 2 Display Display z = [0 6 5 3 1]; for i = 1:2:5 if (i 3) disp('done') else back2 - fen2(1,y,X,z) end end 2 3 | function (out2) - feni (j,y,X,k) out2 = zeros (1,4) for i=1:3:5 out2(1) - fen2(i,x,y,k); end end function (out1) - fcn2 (d, s,k) switch (k()) case 11,2) out1 = d+9 case 13,4) outl - 2*s otherwise outldus N 10 11 end
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
