Generate a 2 x 4 matrix variable mat. Replace the first row with 1:4. Replace the third column (you decide with which values)
belongs to book: MATLAB: A Practical Introduction to Programming and Problem Solving|Stormy Attaway|Fourth Edition| Chapter number:2| Question number:13.2
All Answers
total answers (1)
>> mat = [2:5; 1 4 11 3]
mat =
2 3 4 5
1 4 11 3
>> mat(1,:) = 1:4
mat =
1 2 3 4
1 4 11 3
>> mat(:,3) = [4;3]
mat =
1 2 4 4
1 4 3 3
need an explanation for this answer? contact us directly to get an explanation for this answer