How do I get MATlab to output the value of a point on a plot?

1 次查看(过去 30 天)
I have a plot of [t,A] where A is a vector with 3 components (Arr,Azz,a). I need to find the value of t when a drops to a negligible value ~10^-3.

采纳的回答

Star Strider
Star Strider 2015-2-27
Something like this would work:
t = linspace(0,10);
a = exp(-t);
ia = find(a <= 1E-3, 1, 'first');
t_thr = t(ia);
figure(1)
plot(t, a)
hold on
plot(t_thr, a(ia), 'bp')
hold off
grid
  2 个评论
Joseph Clegg
Joseph Clegg 2015-2-27
That's perfect thanks I had up to the ia line but didn't think of the next line.
Star Strider
Star Strider 2015-2-27
My pleasure!
If I solved your problem, I would appreciate it if you would Accept my Answer.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 2-D and 3-D Plots 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by