Q:

Given the matrix:

0

Given the matrix:

>> mat = randi([1 20], 3,5)

mat =

 6  17  7  13  17

 17  5  4  10  12

 6  19   6   8  11

Why wouldn’t this work: 

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

mat(2:3, 1:3) = ones(2)

Because the left and right sides are not the same dimensions. 

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now