How to display the value of output on plot?
150 ビュー (過去 30 日間)
古いコメントを表示

Error_x(count)=sqrt(error)/sqrt(DN);
end
figure
hold on
plot(Error_x,'s-r')
0 件のコメント
回答 (2 件)
KSSV
2020 年 10 月 22 日
編集済み: KSSV
2020 年 10 月 22 日
Read about text. With this function, you can specify the string str by providing location (x,y). At this position (x,y) you can display a string str.
5 件のコメント
KSSV
2020 年 10 月 22 日
With the data in hand ..you can find R^2 and you can use text or annotate. Also after plotting you can go to edit and insert a text box manually.
Walter Roberson
2020 年 10 月 22 日
You can use text() or you can use annotate() . I would suggest that text() is much easier to use for this purpose.
You could also build the value into the title() of the plot, of course.
Your output appears to be a vector, so it is not immediately clear what output you want to display.
参考
カテゴリ
Help Center および File Exchange で Annotations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!