wangyue1004
2009-06-08, 15:16
T=10e-6; %发射脉宽10us
B=30e6; %调频带宽30MHz
K=B/T; %频率调制斜率
Fs=2.5*B;Ts=1/Fs; %计算机仿真的采样频率和采样周期
N=T/Ts; %采样点数
t=linspace(-T/2,T/2,N);
St=exp(j*pi*K*t.^2); %产生线性调频信号
subplot(211)
plot(t*1e6,real(St));
xlabel('\fontsize{9}时间(us)');title('\fontsize{9}LFM脉冲的时域波形')
grid on;axis tight;
subplot(212)
freq=linsapce(-Fs/2,Fs/2,N);
plot(freq*1e-6,fftshift(abs(fft(St))));
xlabel('\fontsize{9}频率(MHz)');title('\fontsize{9}LFM脉冲的幅频特性')
grid on;axis tight;
运行之后出现??? Undefined function or method 'linsapce' for input arguments of type 'double'.这句话
第二张图出不来,要怎么改啊,各位高手帮帮忙吧
B=30e6; %调频带宽30MHz
K=B/T; %频率调制斜率
Fs=2.5*B;Ts=1/Fs; %计算机仿真的采样频率和采样周期
N=T/Ts; %采样点数
t=linspace(-T/2,T/2,N);
St=exp(j*pi*K*t.^2); %产生线性调频信号
subplot(211)
plot(t*1e6,real(St));
xlabel('\fontsize{9}时间(us)');title('\fontsize{9}LFM脉冲的时域波形')
grid on;axis tight;
subplot(212)
freq=linsapce(-Fs/2,Fs/2,N);
plot(freq*1e-6,fftshift(abs(fft(St))));
xlabel('\fontsize{9}频率(MHz)');title('\fontsize{9}LFM脉冲的幅频特性')
grid on;axis tight;
运行之后出现??? Undefined function or method 'linsapce' for input arguments of type 'double'.这句话
第二张图出不来,要怎么改啊,各位高手帮帮忙吧