how to plot a specific column of a matrix
古いコメントを表示
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.
回答 (2 件)
Mischa Kim
2014 年 7 月 24 日
編集済み: Mischa Kim
2014 年 7 月 24 日
Amin, use
plot(mymat(:,2))
where mymat is the matrix.
Michael Haderlein
2014 年 7 月 24 日
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
カテゴリ
ヘルプ センター および File Exchange で Annotations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

