求助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/06/21 17:02:48
![求助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.](/uploads/image/z/637050-66-0.jpg?t=%E6%B1%82%E5%8A%A9Matlab%E7%A8%8B%E5%BA%8F%2C%E7%94%A8plot%E7%94%BB%E5%9B%BE%7Ex%3D-1%3A0.2%3A1%3By%3Dsqrt%28x.%5E3%2B2%2Ax.%5E2-x%2B12%29%2B7%2Ax.%5E2%2B36%3Bf%3Ddiff%28y%29plot%28x%2Cf%29%E6%83%B3%E6%B1%82%E9%82%A3%E4%B8%AA%E5%87%BD%E6%95%B0%E7%9A%84%E5%AF%BC%E6%95%B0%E7%84%B6%E5%90%8E%E7%94%BB%E5%9B%BE%2C%E5%AE%83%E8%AF%B4Error+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))