Moving Boll to arrow direction
output is medium value
But output is string print, How to value printing
output=((x_mving-x_start)^2+(y_mving-y_start)^2)^0.5
xt=(x_start+x_mving)/2;
yt=(y_start+y_mving)/2;
str = 'output';
tt=text(xt,yt,str);

 채택된 답변

KSSV
KSSV 2021년 9월 6일

0 개 추천

x = (1:10)' ;
y = rand(size(x)) ;
plot(x,y,'.r')
hold on
text(x,y,num2str(y))

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Labels and Annotations에 대해 자세히 알아보기

태그

질문:

2021년 9월 6일

댓글:

2021년 9월 6일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by