display max ,min and a value of array in plot

8 ビュー (過去 30 日間)
amjad almaarafawi
amjad almaarafawi 2019 年 12 月 14 日
コメント済み: salah chouchane 2020 年 12 月 6 日
hello everyone, Im trying to disply the values of max, min and average of the relative error in the graph
A= matrix 20x2
V_interpolation = matrix 20x1
V_exper = -A(:,2);
r_exper = A(:,1);
Absuolut_Error = -abs(V_interpolation - V_exper);
Relative_Error = -abs(Absuolut_Error/(V_exper))
Max= max(Relative_Error);
Min= min(Relative_Error);
Average = mean(Relative_Error);

採用された回答

Image Analyst
Image Analyst 2019 年 12 月 14 日
Use plot() if you want to indicate with a marker. Use yline() or line() if you want to draw a line from the axis. Use sprintf() and text() if you want to put text onto the graph.
  4 件のコメント
amjad almaarafawi
amjad almaarafawi 2019 年 12 月 15 日
well done thank you so much I reall appreicated your hlep
salah chouchane
salah chouchane 2020 年 12 月 6 日
Thank you my friend.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeAnnotations についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by