fplot gives empty figure, while explot works

조회 수: 5 (최근 30일)
Brian
Brian 2018년 3월 1일
답변: Krishna Bindumadhavan 2018년 3월 16일
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
Star Strider
Star Strider 2018년 3월 1일
What version of MATLAB are you using?
Both of the plots work for me in R2017b.

댓글을 달려면 로그인하십시오.

채택된 답변

Krishna Bindumadhavan
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개)

카테고리

Help CenterFile Exchange에서 Line Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by