How can I plot the data saved in a matrix?
6 views (last 30 days)
Show older comments
I have a 104x24 matrix with data I want to plot in a single figure. However, I don't want to plot all the information of the matrix. I have saved the rows I will not use in a variable (row_no_used = [28 37 39 41 43 45 47 50 52 54 56 58 60];). How can I plot the rest of the rows with a simple script? To clarify a little bit more my point, I would like to plot the following rows: 1:27, 36, 38, 40, 42, 44, 46, 48, 49, 51, 53, 55, 57, 59, 61:96.
Many thanks for your help,
0 Comments
Accepted Answer
KSSV
on 27 Apr 2018
A = rand(104,24) ;
row_no_used = [28 37 39 41 43 45 47 50 52 54 56 58 60];
[nx,ny] = size(A) ;
rows = 1:nx ;
row_used = setdiff(rows,row_no_used) ;
iwant = A(row_used,:) ;
plot(iwant)
More Answers (0)
See Also
Categories
Find more on Scatter Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!