Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

regarding plotTING DATA in matlab

조회 수: 5 (최근 30일)
Udit Narayan
Udit Narayan 2020년 5월 27일
마감: MATLAB Answer Bot 2021년 8월 20일
can you tell me how to display maximum value of y in the top right corner of graph when i have a n*1 size column vector of y and n*1 size column vector for x .And y is independent of x

답변 (1개)

KSSV
KSSV 2020년 5월 27일
% Random data for demo
n = 100 ;
x = 1:n ;
y = rand(size(x)) ;
% plot
plot(x,y)
lgd = ['ymax = ',num2str(max(y))] ;
legend(lgd)
Alternatively you can also use text. For this you have to specify the location where you want to display the value.

이 질문은 마감되었습니다.

제품

Community Treasure Hunt

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

Start Hunting!

Translated by