fplot gives empty figure, while explot works
2 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
Krishna Bindumadhavan
2018-3-16
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.
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Line Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!