generating aperodic impulse train or triangular pulse or rectangular pulse

5 ビュー (過去 30 日間)
LAKSHMAN
LAKSHMAN 2014 年 8 月 22 日
コメント済み: LAKSHMAN 2014 年 8 月 26 日
Hello all,
I want to generate aperodic signal of type impulse train or triangular pulse train or rectangular pulses train. i.e. time period b/w samples should vary for every 2 samples. I want to find frequency content from that signal by using FFT. I am new to matlab coding. Could anyone plz explain me how to generate the signal... Rest FFT and signal analysis i can do.
Thanks in advance.
  3 件のコメント
Rick Rosson
Rick Rosson 2014 年 8 月 23 日
Do you have the Signal Processing Toolbox?
LAKSHMAN
LAKSHMAN 2014 年 8 月 25 日
yes i have.. but when i searched for any wave it is showing only periodic signals..

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

採用された回答

Image Analyst
Image Analyst 2014 年 8 月 26 日
Attached is my triangle wave demo. Feel free to adapt it as needed.

その他の回答 (2 件)

Rick Rosson
Rick Rosson 2014 年 8 月 23 日
doc rectpuls
doc tripuls
doc pulstran
  3 件のコメント
Rick Rosson
Rick Rosson 2014 年 8 月 26 日
Please read the doc. Then try it.
LAKSHMAN
LAKSHMAN 2014 年 8 月 26 日
I have studied these docs.. Understood more compared to previous.. Thank you Rick..

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


W. Owen Brimijoin
W. Owen Brimijoin 2014 年 8 月 25 日
It's a bit hard to know exactly what parameters you are after, but if all you are doing is making a click train with randomly chosen interstimulus intervals (ISI), then you may be able to get there by creating a vector with randomly chosen integers drawn uniformly from a range.
isi_range = [10 100]; %range from smallest to largest isi (in samples)
num_clicks = 100; %number of clicks you want
%figure out when your clicks are:
click_times = cumsum(randi(isi_range,num_clicks,1));
%set an empty variable to 1 at those points:
signal(click_times) = 1;

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by