求助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/05/06 12:16:38
求助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 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))