Effacer les filtres
Effacer les filtres

fplot gives empty figure, while explot works

4 vues (au cours des 30 derniers jours)
Brian
Brian le 1 Mar 2018
If I run the code below on 2016a, I get a nice plot from ezplot but an empty figure from fplot. I'm new to the symbolic math toolbox...
Thanks in advance for any suggestions!
---------
syms x
t1 = x / 5;
distance = sqrt(120^2 + (140-x)^2);
t2 = distance / 3;
timeTot = t1 + t2;
% this works fine
ezplot(timeTot,[0 140])
% this gives an empty figure
figure, fplot(timeTot,[0 140])
  1 commentaire
Star Strider
Star Strider le 1 Mar 2018
What version of MATLAB are you using?
Both of the plots work for me in R2017b.

Connectez-vous pour commenter.

Réponse acceptée

Krishna Bindumadhavan
Krishna Bindumadhavan le 16 Mar 2018
Thanks for the question.
I was able to reproduce this behaviour in the R2016a release - this looks like a bug. This seems to have been fixed from the R2016b release onward.

Plus de réponses (0)

Catégories

En savoir plus sur Line Plots dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by