generating aperodic impulse train or triangular pulse or rectangular pulse
Mostrar comentarios más antiguos
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 comentarios
LAKSHMAN
el 23 de Ag. de 2014
Rick Rosson
el 23 de Ag. de 2014
Do you have the Signal Processing Toolbox?
LAKSHMAN
el 25 de Ag. de 2014
Respuesta aceptada
Más respuestas (2)
Rick Rosson
el 23 de Ag. de 2014
doc rectpuls
doc tripuls
doc pulstran
3 comentarios
LAKSHMAN
el 25 de Ag. de 2014
Rick Rosson
el 26 de Ag. de 2014
Please read the doc. Then try it.
LAKSHMAN
el 26 de Ag. de 2014
W. Owen Brimijoin
el 25 de Ag. de 2014
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;
Categorías
Más información sobre Waveform Generation en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!