Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Help regarding Pulse Train....

75 views
Skip to first unread message

G

unread,
Jun 23, 2009, 4:10:55 AM6/23/09
to
We are supposed to generate a pulse train with a period of 5 secs. and a duty cycle of 50%. Then we will plot the pulse train at the range of 0 ≤ t ≤ 20 with a resolution of 0.01 secs. Can someone help me?? I'm just new in using MATLAB... Thanks for the Help! ^_^

Sprinceana

unread,
Jun 23, 2009, 4:29:01 AM6/23/09
to
"G " <naren_g...@yahoo.com> wrote in message <h1q2mf$acv$1...@fred.mathworks.com>...

> We are supposed to generate a pulse train with a period of 5 secs. and a duty cycle of 50%. Then we will plot the pulse train at the range of 0 &#8804; t &#8804; 20 with a resolution of 0.01 secs. Can someone help me?? I'm just new in using MATLAB... Thanks for the Help! ^_^

Hi G!

Use pulstran function.


>>help pulstran

or

>>doc pulstran

Also in helpdesk of matlab:

http://www.mathworks.com/access/helpdesk/help/toolbox/signal/index.html?/access/helpdesk/help/toolbox/signal/pulstran.html&http://www.google.ro/search?hl=ro&q=pulse+train+matlab+source&btnG=C%C4%83utare&meta=

Michael

Sprinceana

unread,
Jun 23, 2009, 4:33:01 AM6/23/09
to
"G " <naren_g...@yahoo.com> wrote in message <h1q2mf$acv$1...@fred.mathworks.com>...
> We are supposed to generate a pulse train with a period of 5 secs. and a duty cycle of 50%. Then we will plot the pulse train at the range of 0 &#8804; t &#8804; 20 with a resolution of 0.01 secs. Can someone help me?? I'm just new in using MATLAB... Thanks for the Help! ^_^

Example:

T = 0:1/50E3:10E-3; %generating pulses
D = [0:1/1E3:10E-3;0.8.^(0:10)]';
Y = pulstran(T,D,'gauspuls',10E3,0.5); %applying function pulstran
plot(T,Y) % plot the function of 2 variables

Also you can generate a gauss pulse using dedicated function gausspuls.

Sprinceana

unread,
Jun 23, 2009, 4:39:01 AM6/23/09
to
You can change the parameter gauspuls with rectpuls and tripuls to see the difference.

You have 3 types of functions in pulse generator

From documentation:

*

'gauspuls', for generating a Gaussian-modulated sinusoidal pulse
*

'rectpuls', for generating a sampled aperiodic rectangle
*

'tripuls', for generating a sampled aperiodic triangle

komalch...@gmail.com

unread,
Sep 3, 2014, 5:56:55 AM9/3/14
to
On Tuesday, 23 June 2009 14:09:01 UTC+5:30, Sprinceana wrote:
> You can change the parameter gauspuls with rectpuls and tripuls to see the difference. You have 3 types of functions in pulse generatorFrom documentation:*'gauspuls', for generating a Gaussian-modulated sinusoidal pulse*'rectpuls', for generating a sampled aperiodic rectangle*'tripuls', for generating a sampled aperiodic triangle

sir how to do without using given functions like pulstran
but i need to generate a pluse train plz help
0 new messages