how to plot specific column from a matrix
55 views (last 30 days)
Show older comments
Hello everyone, I have a 349525 x 4 double matrix, if I try to plot the graph of column 1 vs column 4, what should my command be. I've tried plot(M(:,1),M(:,4)) already and it didn't work out. Any help will be much appreciated. Thank you.
0 Comments
Answers (1)
KSSV
on 12 Jan 2022
A = rand(100,4) ;
plot(A(:,1),A(:,4)) % plot 1 column w.r.t. 4 column
If this is not working. Show us the full error or tell us how the plot is.
2 Comments
See Also
Categories
Find more on Annotations 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!