Everytime I run specific fplot function, for some reason my entire matlab program freezes. If I run anything else, it works just fine. Why does this happen?
조회 수: 1 (최근 30일)
이전 댓글 표시
syms t(y)
t(y) = (3.8e6)/(16.1070*1.466*y)*((6.9607*y*95.2e6)/(3.8e6*(6.9607*(1-y)-1)))^(1-y)
fplot(t(y))
댓글 수: 0
답변 (1개)
Walter Roberson
2017년 9월 21일
You need to control the bounds. For all y values less than 0, the expression is complex; and for all y values greater than 59607/69607, the expression is complex except at integers.
fplot() with default bounds is spending a lot of time trying to figure out where the real-valued locations are in order to plot them.
댓글 수: 2
Walter Roberson
2017년 9월 21일
I am not sure. I know that fplot does a lot of background processing looking for discontinuities, but there should not be any in that range.
In the meantime, switch to ezplot
참고 항목
카테고리
Help Center 및 File Exchange에서 Calculus에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!