How to integrate LFM signal into pulse

45 ビュー (過去 30 日間)
tinkyminky93
tinkyminky93 2022 年 1 月 13 日
コメント済み: Chunru 2022 年 1 月 14 日
I am trying to generate a Linear Frequency Modulated (LFM) Pulse waveform like below.
I generated periodic chirp signals but the problem is i can not put inside these chirps into pulse boundaries. I mean outside of the duty cycle is not zero. How can I solve this problem? By the way, I am not using a toolbox. Thank you for your help.

採用された回答

Chunru
Chunru 2022 年 1 月 14 日
編集済み: Chunru 2022 年 1 月 14 日
fl = 100; % Hz
fu = 200;
fs = 1000;
pw = 0.1; % sec
pri = 1; % sec
% LFM
t = (0:1/fs:pw)';
x = cos(2*pi*(fl*t + .5*(fu-fl)/pw*t.^2));
% One pulse
x(end+1:round(pri*fs)) = 0;
% Npulses
Npulses = 3;
y = repmat(x, [3 1]);
t = (0:length(y)-1)'/fs;
plot(t, y)
  8 件のコメント
tinkyminky93
tinkyminky93 2022 年 1 月 14 日
I mean the Signals positive peak is 1 and the negative peak is -1. I want the signal to oscillate between 0 and 1.
---------------------
My fs is 1000 for this situation, what should I use for only just upchirp?
Chunru
Chunru 2022 年 1 月 14 日
You can try the following (but you need to know why your need to have that kind of amplitude):
fl = 100; % Hz
fu = 200;
fs = 1000;
pw = 0.1; % sec
pri = 1; % sec
% LFM
t = (0:1/fs:pw)';
x = 0.5*(1+cos(2*pi*(fl*t + .5*(fu-fl)/pw*t.^2)));
plot(t, x)

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeWaveform Generation についてさらに検索

製品


リリース

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by