MATLAB中的画图问题r=rectangle('Position',[4/3/10^4-0.5,0,1,1]);t=0:0.0001:0.5;n=0:0.0001:1;s=sinc(n);s0=r*s*exp(-i*4*pi*5300000000*20000/(3*10.^8))*exp(i*pi*0.25*exp(12)*((t-2*20000/3/(10.^8))).^2)Error using ==> mtimesInner matrix dimensions m
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/15 21:31:26
MATLAB中的画图问题r=rectangle('Position',[4/3/10^4-0.5,0,1,1]);t=0:0.0001:0.5;n=0:0.0001:1;s=sinc(n);s0=r*s*exp(-i*4*pi*5300000000*20000/(3*10.^8))*exp(i*pi*0.25*exp(12)*((t-2*20000/3/(10.^8))).^2)Error using ==> mtimesInner matrix dimensions m
MATLAB中的画图问题
r=rectangle('Position',[4/3/10^4-0.5,0,1,1]);
t=0:0.0001:0.5;
n=0:0.0001:1;
s=sinc(n);
s0=r*s*exp(-i*4*pi*5300000000*20000/(3*10.^8))*exp(i*pi*0.25*exp(12)*((t-2*20000/3/(10.^8))).^2)
Error using ==> mtimes
Inner matrix dimensions must agree.
MATLAB中的画图问题r=rectangle('Position',[4/3/10^4-0.5,0,1,1]);t=0:0.0001:0.5;n=0:0.0001:1;s=sinc(n);s0=r*s*exp(-i*4*pi*5300000000*20000/(3*10.^8))*exp(i*pi*0.25*exp(12)*((t-2*20000/3/(10.^8))).^2)Error using ==> mtimesInner matrix dimensions m
r=rectangle('Position',[4/3/10^4-0.5,0,1,1]);
t=0:0.0001:1;
n=0:0.0001:1;
s=sinc(n);
s0=r*s*exp(-i*4*pi*5300000000*20000/(3*10.^8)).*exp(i*pi*0.25*exp(12).*((t-2*20000/3/(10.^8))).^2);
这样应该不会报错了,但我搞不明白你s0乘以r干什么,r只是一个句柄啊.