matlab 画图出错 Conversion to double from sym is not possible.syms x;y=-2.1813e-005*(x^5)+0.0013202*(x^4)-0.02357*(x^3)+0.086555*(x^2)+0.028076*x+22.711;dy=diff(y);x=0:.1;30;plot(x,dy)

来源:学生作业学帮网 编辑:学帮网 时间:2024/06/04 07:03:38

matlab 画图出错 Conversion to double from sym is not possible.
syms x;
y=-2.1813e-005*(x^5)+0.0013202*(x^4)-0.02357*(x^3)+0.086555*(x^2)+0.028076*x+22.711;
dy=diff(y);
x=0:.1;30;
plot(x,dy)

syms x;
y=-2.1813e-005*(x^5)+0.0013202*(x^4)-0.02357*(x^3)+0.086555*(x^2)+0.028076*x+22.711;
dy=diff(y);
ezplot(dy,[0 30])