Question: Question 8 9% Vectorize this code; write one assignment statement that will accomplish the same thing: myvar -0; r c] size(mat); for i- 1:r for
Question 8 9% Vectorize this code; write one assignment statement that will accomplish the same thing: myvar -0; r c] size(mat); for i- 1:r for j 1: c myvar myvar + mat(i, j); end end 9 myvar % Note just to display the-contents of myvar Question 9 emmand Window Enter an integer value creater than 0: 17 Enter a number:17 Enter an integer value greater than o: 100 Enter-an integer value greater than 0: 00 Enter an integer vaiue greater chan 0: 101
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
