How can I show a certain value in a certain position in the figure?

조회 수: 76 (최근 30일)
Tania Islam
Tania Islam 2019년 12월 26일
댓글: Tania Islam 2019년 12월 30일
Hello,
I want to a specific value in the figure. I put the black circle and arrow manually through the figure insert option. But How can I set the value now?
I want the x-axes values that are exactly 90% of each CDF curve.
here I am attaching my matlab figure in jpg mode.

채택된 답변

Mark Sherstan
Mark Sherstan 2019년 12월 26일
Here is a quick example. If you do not have an equation you can still solve for the 0.9 value using numerical methods but the key is the text function.
% Some equation
syms x
eq = 0.2*x;
% Solve for x coord
S = vpasolve(eq == 0.9, x)
% Plot
fplot(eq)
% Add labels
hold on
plot(S, 0.9, 'o')
text(S, 0.9, string(S))
hold off
  댓글 수: 13
Mark Sherstan
Mark Sherstan 2019년 12월 29일
I had no problem. You can see the plot that I generated a few posts back.

댓글을 달려면 로그인하십시오.

추가 답변 (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