可能跟matlab版本有关系,论坛自带的matlab 2021b可以运行,如下所示
syms x
fplot(sin(x)/(x^2-x+0.5)+cos(x)/(x^2+2*x-0.5),[0,1],':r')
matlab 2014a需要inline函数才可以运行
syms x
fplot(inline(sin(x)/(x^2-x+0.5)+cos(x)/(x^2+2*x-0.5)),[0,1],':r')
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!