필터 지우기
필터 지우기

Show Names of Variables in Plot

조회 수: 2 (최근 30일)
Thomas Fab
Thomas Fab 2021년 8월 17일
댓글: Thomas Fab 2021년 8월 17일
Hello,
I was wondering if there´s a feature to display the names of plotted arrays directly in the plot.
I want to figure out the name (e.g. 'voltage17') of the deviating lines (e.g. red line) in a comfortable way (via Plot Browser is not that cool :( )...
Any ideas?
Thanks,
-Thomas-

채택된 답변

KSSV
KSSV 2021년 8월 17일
편집: KSSV 2021년 8월 17일
Read about the function text. With this you can place text any where on the plot.
x = 1:10 ;
y = x.^2 ;
plot(x,y) ;
hold on
text(x(end),y(end),'last point')

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Annotations에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by