Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Square pulses in matlab

Status
Not open for further replies.

sirdivi

Newbie level 5
Joined
Jun 17, 2010
Messages
10
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,348
How can i create 7 square pulses of 1040 Hz with duty ratio of 50% in matlab?
 

Hi

I m not sure if I understood your requirements 100%, but pulsetrain can be done with pulstran function in MATLAB. You can arrange rectangular pulses.

A beginning point can be
**broken link removed**

Do you mean only finite 7 pulses with 1040 Hz?? That is, after 6.7 usec there is no signal anymore?? Maybe I can help further if you can clarify this.

Cheers
 

    sirdivi

    Points: 2
    Helpful Answer Positive Rating
yes i only need a pulse during 7periods, and after that i need to compare it with a signal in order to find where are 7 pulses also in the big signal
 

try the function x=square(t,duty)...

I would suggest learning Simulink though... it is much better for signal analysis.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top