-
3 Comments
Gregory Karathymios
on 22 May 2020
function m = plot_cos(y, t)
[m,idx]=min(y);
t_m=t(idx);
plot(y,t,'b--',m,t_m,'r*')
end
why doesn't it work? It gives the error "Check plotted data" but my data works just fine on my pc. Any ideas on why it doesn't accept my solution?
priyanka p
on 15 Jul 2020
Just change the order in plotting, i.e,
plot(t,y,'b--',t_m,m,'r*')
since plot(x,y) is main function.
x->t and y->y
MD AMIMUL IHSAN
on 24 Jan 2022
use hold on after first plot
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!