how to plot a specific column of a matrix
51 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
hi there , i have a 115340*3 matrix i want to plot just the second column of it, how can i do that ? any help would be appreciated.
0 commentaires
Réponses (2)
Mischa Kim
le 24 Juil 2014
Modifié(e) : Mischa Kim
le 24 Juil 2014
Amin, use
plot(mymat(:,2))
where mymat is the matrix.
5 commentaires
Michael Haderlein
le 24 Juil 2014
That looks as if your data is not sorted. Either you don't plot the lines
plot(...,'.')
or you sort beforehand:
[sort1,ind]=sort(matrix(:,2));
sort2=matrix(ind,3);
plot(sort1,sort2)
Best regards,
Michael
0 commentaires
Voir également
Catégories
En savoir plus sur Annotations dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

