matlab Error using ==> mrdivide Matrix dimensions must agree.x1=-pi:pi/50:pi;x2=pi:pi/50:4*pi;x3=1:1/50:8;y1=x1.*cos(x1);y2=x2.*tan(1/x2).*sin(x2.*x2.*x2);y3=exp(1/x3).*sin(x);Error using ==> mrdivideMatrix dimensions must agree.
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/18 00:43:43
matlab Error using ==> mrdivide Matrix dimensions must agree.x1=-pi:pi/50:pi;x2=pi:pi/50:4*pi;x3=1:1/50:8;y1=x1.*cos(x1);y2=x2.*tan(1/x2).*sin(x2.*x2.*x2);y3=exp(1/x3).*sin(x);Error using ==> mrdivideMatrix dimensions must agree.
matlab Error using ==> mrdivide Matrix dimensions must agree.
x1=-pi:pi/50:pi;
x2=pi:pi/50:4*pi;
x3=1:1/50:8;
y1=x1.*cos(x1);y2=x2.*tan(1/x2).*sin(x2.*x2.*x2);y3=exp(1/x3).*sin(x);
Error using ==> mrdivide
Matrix dimensions must agree.
matlab Error using ==> mrdivide Matrix dimensions must agree.x1=-pi:pi/50:pi;x2=pi:pi/50:4*pi;x3=1:1/50:8;y1=x1.*cos(x1);y2=x2.*tan(1/x2).*sin(x2.*x2.*x2);y3=exp(1/x3).*sin(x);Error using ==> mrdivideMatrix dimensions must agree.
少了2个点,y3=exp(1/x3).*sin(x);这句也不对:
clear all;clc;
x1=-pi:pi/50:pi;
x2=pi:pi/50:4*pi;
x3=1:1/50:8;
y1=x1.*cos(x1);
y2=x2.*tan(1./x2).*sin(x2.^3);
y3=exp(1./x3).*sin(x3);