Matlab中Inner matrix dimensions must agree.>> clear>> Ts=10*10^(-6);M=4;f0=5*10^6;B=30*10^6;>> fs=300*1/Ts/10;>> t=[0:1:100];>> if 0 U=B/Ts;>> S1=u*exp(f0*t+0.5*U*t*t);就到这一步出现上面的问题.

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/12 17:59:50
Matlab中Inner matrix dimensions must agree.>> clear>> Ts=10*10^(-6);M=4;f0=5*10^6;B=30*10^6;>> fs=300*1/Ts/10;>> t=[0:1:100];>> if 0 U=B/Ts;>> S1=u*exp(f0*t+0.5*U*t*t);就到这一步出现上面的问题.

Matlab中Inner matrix dimensions must agree.>> clear>> Ts=10*10^(-6);M=4;f0=5*10^6;B=30*10^6;>> fs=300*1/Ts/10;>> t=[0:1:100];>> if 0 U=B/Ts;>> S1=u*exp(f0*t+0.5*U*t*t);就到这一步出现上面的问题.
Matlab中Inner matrix dimensions must agree.
>> clear
>> Ts=10*10^(-6);
M=4;
f0=5*10^6;
B=30*10^6;
>> fs=300*1/Ts/10;
>> t=[0:1:100];
>> if 0 U=B/Ts;
>> S1=u*exp(f0*t+0.5*U*t*t);就到这一步出现上面的问题.

Matlab中Inner matrix dimensions must agree.>> clear>> Ts=10*10^(-6);M=4;f0=5*10^6;B=30*10^6;>> fs=300*1/Ts/10;>> t=[0:1:100];>> if 0 U=B/Ts;>> S1=u*exp(f0*t+0.5*U*t*t);就到这一步出现上面的问题.
% S1=u*exp(f0*t+0.5*U*t*t); t 是向量要用点乘
S1=u*exp(f0*t+0.5*U.*t.*t);