41. The following matrix is defined in MATLAB: S = 1 2 3 4 5 6 7...
Question:
41. The following matrix is defined in MATLAB:
S =
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 By hand (pencil and paper) write what will be displayed if the following commands are executed by MATLAB. Check your answers by executing the commands with MATLAB.
(a) A=S(2,[2,4])
(b) B=S(3,[3:5])
(c) C=S([2:4],[4:6])
(d) D=S(:,[1:3])
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
Question Posted: