Info
この質問は閉じられています。 編集または回答するには再度開いてください。
regarding plotTING DATA in matlab
5 ビュー (過去 30 日間)
古いコメントを表示
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
0 件のコメント
回答 (1 件)
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.
0 件のコメント
この質問は閉じられています。
参考
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!