|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?我要加入
x
我不明白怎么错了,该怎么改呢?
fz=10e3;
>> tz=1/fz;
>> fs=8e6;
>> ts=1/fs;
>> doppler=2.5e3;
>> N=tz/ts;
>> pulse=[zeros(1,100),1,1,zeros(1,N-102)];
Warning: Size vector should be a row vector with integer elements.
>> pc=repmat(pulse,1,16);
>> n=1:16*N;
>> doppler2=cos(n*2*pi*doppler/fs);
>> pc=pc.*doppler2;
>> noise=0.1*rand(1,N*16);
Warning: Size vector should be a row vector with integer elements.
>> pc=pc+noise;
>> figure,
>> plot(0:ts:(16*N-1)*ts,pc),xlabel('t(单位:s)'),title('回波信号');
>> pc=reshape(pc,N,16);
??? Error using ==> reshape
Size arguments must be real integers.
谢谢!!!:'(
[ 本帖最后由 eight 于 2008-3-4 22:10 编辑 ] |
|