Question: Using a for loop, write a script that will create a subplot for every row in the provided matrix, and will plot the numbers from
Using a for loop, write a script that will create a subplot for every row in the provided matrix, and will plot the numbers from each row in the same Figure Window.
The sample matrix is in the form:
mat =
1 8 3 7
5 9 4 2
... etc.
This means that there are a variable number of rows and columns! Writing general code will ensure a correct answer.
% Given matrix: mat = randi([1,10],randi([2,6]),randi([3,5]));
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
