Determine the output of the following set of commands A=[ 5 4 3 21 0 9 -5 3 21; for idx=1: length (A) if (A(idx) <2) A(i
Posted: Sat Jul 09, 2022 11:48 am
Determine the output of the following set of commands
A=[ 5 4 3 21 0 9 -5 3 21;for idx=1: length (A)if (A(idx) <2)A(idx)=A(idx)*2;endenddisp(A)
A=[ 5 4 3 21 0 9 -5 3 21;for idx=1: length (A)if (A(idx) <2)A(idx)=A(idx)*2;endenddisp(A)