필터 지우기
필터 지우기

How do I increase the space between trains in this periodic waveform

조회 수: 1 (최근 30일)
Hi Friends I am interested in the pulstran function below:
t = 0 : 1/50E3 : 10e-3;
d = [0 : 1/1E3 : 10e-3 ; 0.8.^(0:10)]';
y = pulstran(t,d,'gauspuls',10e3,0.5);
plot(t,y)
I need to now what to do to increase the space or distance between each train in the waveform. Someone pls help urgently.
Thanks in advance

채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2013년 12월 8일
편집: Azzi Abdelmalek 2013년 12월 8일
t = 0 : 1/50E3 : 10e-3;
spac=3e-3
spac_vect=0 : spac : 10e-3 % vector of delays
amp_vect=0.8.^(0:numel(spac_vect)-1) % vector of amplitudes
d = [spac_vect;amp_vect]';
y = pulstran(t,d,'gauspuls',10e3,0.5);
plot(t,y)
  댓글 수: 2
Michael Bernard
Michael Bernard 2013년 12월 9일
Thank you very much Azzi Abdelmalek.This is extremely wonderful.Thats exactly what I needed. But please allow me to ask you one more question.
Suppose I wanted the each train in the wave form to repeat in similar pattern without dying out???That is the pattern of the first wave train is the same as the second and the same as the third and so on without any reduction in amplitude or so. Is this possible? If so, can you give me a short program about how to do it? I the trains to be equally space just as the one you already give me. Looking forward to your reply.
Thanks
Azzi Abdelmalek
Azzi Abdelmalek 2013년 12월 9일
Michael, In the comments of the above code, I've explained that amp_vect corresponds to your pulses amplitudes
t = 0 : 1/50E3 : 10e-3;
spac=3e-3
Amp=10
spac_vect=0 : spac : 10e-3 % vector of delays
amp_vect=Amp*ones(1,numel(spac_vect)) % vector of amplitudes
d = [spac_vect;amp_vect]';
y = pulstran(t,d,'gauspuls',10e3,0.5);
plot(t,y)

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Descriptive Statistics에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by