Log(x) equation does not plot correctly
Mostra commenti meno recenti
Hello,
Here is my code:
x = -5:0.05:10;
y=log(x);
plot(x,y)
comet(x,y)
It won't let it animate. When i put x = 1:0.05:10; it does animate , but shouldn't matlab do it anyway? Why doesn't it animate from 1 to 10 even if i put -5 , every other function works fine? Maybe comet doesn't work with it?
If you have any ideas, please help.
Risposta accettata
Più risposte (1)
%f true
comet(x,real(y))
Use the real components to graph.
Categorie
Scopri di più su Animation in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!