display max ,min and a value of array in plot

조회 수: 6 (최근 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 CenterFile Exchange에서 Annotations에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by