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.
0 个评论
采纳的回答
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 个评论
Star Strider
2015-2-27
My pleasure!
If I solved your problem, I would appreciate it if you would Accept my Answer.
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!