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!