In: Computer Science
Show manual calculations to illustrate how the following operations would be performed in MATLAB.
Determine the result and the size of the following expression.
Note that the later
arrays may depend on the definition of earlier arrays
(a) a = 6:-3:-4
(b) b = [ a’ a’ a’]
(c) c = b(1:2:3, 1:2:3)
(d) d = b(3:-2:1,: )
(e) w = [zeros(1,3) , ones(3,1)’ , 3:5’]
Here is the solution:
Here is the screenshot proof:
If you have any doubts please leave a comment!!!