plotting Y data on scatter plot
조회 수: 1 (최근 30일)
이전 댓글 표시
I am using the following command in scatter plot
uisng the following code
for i = 1:6
text(X(i),Y(i),sprintf('(%d)',Y(i)))
end
I am getting the values in E3 format ...I want only like 2500 instead of 2.5E3 easy to interpet any inputs will be highly helpful .Thank you in advance . I have used format shortG but it change for number not the plots
댓글 수: 0
채택된 답변
Simon Chan
2022년 1월 18일
Another option as follows:
for i = 1:6
text(X(i),Y(i),sprintf('(%.0f)',Y(i)))
end
추가 답변 (1개)
Yusuf Suer Erdem
2022년 1월 18일
Before 'text()' command add 'format long' command. it should be hepful.
참고 항목
카테고리
Help Center 및 File Exchange에서 Annotations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!