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

📄 chirp_signal.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;
tao=10e-7;    % time delay
% f0=3e8;
t=linspace(-T/2,T/2,N);
St=exp(j*pi*K*(t-tao).^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 + -