作业帮 > 综合 > 作业

matlab Error using ==> mrdivide Matrix dimensions must agree

来源:学生作业帮 编辑:百度作业网作业帮 分类:综合作业 时间:2024/05/14 12:32:49
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
少了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);