求助Matlab程序,用plot画图~x=-1:0.2:1;y=sqrt(x.^3+2*x.^2-x+12)+7*x.^2+36;f=diff(y)plot(x,f)想求那个函数的导数然后画图,它说Error using plotVectors must be the same lengths.
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/27 12:01:18
求助Matlab程序,用plot画图~x=-1:0.2:1;y=sqrt(x.^3+2*x.^2-x+12)+7*x.^2+36;f=diff(y)plot(x,f)想求那个函数的导数然后画图,它说E
求助Matlab程序,用plot画图~x=-1:0.2:1;y=sqrt(x.^3+2*x.^2-x+12)+7*x.^2+36;f=diff(y)plot(x,f)想求那个函数的导数然后画图,它说Error using plotVectors must be the same lengths.
求助Matlab程序,用plot画图~
x=-1:0.2:1;
y=sqrt(x.^3+2*x.^2-x+12)+7*x.^2+36;
f=diff(y)
plot(x,f)
想求那个函数的导数然后画图,
它说Error using plot
Vectors must be the same lengths.
求助Matlab程序,用plot画图~x=-1:0.2:1;y=sqrt(x.^3+2*x.^2-x+12)+7*x.^2+36;f=diff(y)plot(x,f)想求那个函数的导数然后画图,它说Error using plotVectors must be the same lengths.
syms x
y=sqrt(x^3+2*x^2-x+12)+7*x^2+36;
f=diff(y);
x=-1:0.2:1;
plot(x,subs(f))