⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 lfm.m

📁 几个常用通信和雷达信号的matlab仿真
💻 M
字号:
%%demo of chirp signal 
T=10e-6;                                  %pulse duration10us 
B=30e6;                                   %chirp frequency modulation bandwidth 30MHz 
K=B/T;                                      %chirp slope 
Fs=2*B;Ts=1/Fs;                      %sampling frequency and sampling spacing 
N=T/Ts; 
t=linspace(-T/2,T/2,N); 
St=exp(j*pi*K*t.^2);                    %generate chirp signal 
subplot(211) 
plot(t*1e6,real(St)); 
xlabel('Time in u sec'); 
title('Real part of chirp signal'); 
grid on;axis tight; 
subplot(212) 
freq=linspace(-Fs/2,Fs/2,N); 
plot(freq*1e-6,fftshift(abs(fft(St)))); 
xlabel('Frequency in MHz'); 
title('Magnitude spectrum of chirp signal'); 
grid on;axis tight; 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -