error while using ezplot
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Celeste Tybor
le 25 Oct 2016
Réponse apportée : Star Strider
le 25 Oct 2016
I am trying to plot this equation given by my professor:
M=ezplot((1654/21)*(atan(2*(t-45)/21)+atan(30/7)),[1,90])
and this error is coming up:
Error using ezplot (line 69) Input must be a string expression, function name, function handle, or INLINE object.
What does this mean and how can I get a graph?
0 commentaires
Réponse acceptée
Star Strider
le 25 Oct 2016
Add ‘@(t)’ to create an anonymous function from your expression, and it works:
M = ezplot(@(t) (1654/21)*(atan(2*(t-45)/21)+atan(30/7)),[1,90])
0 commentaires
Plus de réponses (0)
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!