MATLAB: Let the array a be declared as a = [ 1, 2; 2, 3; 1, 2; 2, 3]. The assignment statement a(4:-1:1, 3:-1:1)=0 results in

doit4meexamhomeworkMATLABno attemptquiz

Let the array a be declared as
a = [ 1, 2; 2, 3; 1, 2; 2, 3]
The assignment statement a(4:-1:1,3:-1:1)=0 results in Select one:
a. An error.
b. a is a 4x3 matrix of 0’s
c. a = [0, 2, 0; 0, 3,0; 0, 2, 0; 2, 3, 0].
d. a = [ 1, 2, 0; 2, 3,0; 1, 2, 0; 2, 3, 0].

Best Answer

b
a 4x3 matrix of zeros