Adding text to the plot values in the plot
3 ビュー (過去 30 日間)
古いコメントを表示
Hi..Am plotting the different values of slopes of lines in a single plot .But I want to indicate each plotted value with the respective line number how can I do this.. previously I am storing slope values in slope(K).. then am using
for k=1:n
plot(slope,'*')
end
Can someone suggest about this...
1 件のコメント
Image Analyst
2011 年 10 月 10 日
Why do you need/want the for loop? The plot function call will plot the whole thing - the whole slope array. You're just plotting the whole thing n times.
採用された回答
Walter Roberson
2011 年 10 月 10 日
Either use legend(), or text() a label in place somewhere along the line.
9 件のコメント
Walter Roberson
2011 年 10 月 20 日
isempty() can tell you whether there was a result from find() or not.
But again, what if there were (say) 5 values found?
その他の回答 (1 件)
参考
カテゴリ
Help Center および File Exchange で Annotations についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!