How to Generate Pulse Signals in Matlab

Status
Not open for further replies.

tubosun4peace

Newbie level 3
Joined
Apr 29, 2012
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,295
Please I need a codes on how to generate pulses signal using the matlab.


Threads with titles like, "Can somebody help me out please?" are meaningless and will be deleted.

Title changed to reflect topic of discussion.
 
Last edited by a moderator:

Re: Can smebody help me out please?

Please I need a codes on how to generate pulses signal using the matlab.


For commonly used sequences, try and use these-

t = (0:0.001:1)';
imp= [1; zeros(99,1)]; % Impulse
unit_step = ones(100,1); % Step (with 0 initial cond.)
ramp_sig= t; % Ramp
quad_sig=t.^2; % Quadratic
sq_wave = square(4*pi*t); % Square wave with period 0.5

hope this helps!
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…