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.

random integer generator in matlab simulink

Status
Not open for further replies.

zunayeed

Junior Member level 1
Joined
May 4, 2011
Messages
15
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Activity points
1,373
suppose i wanna generate random data from 0 to 3 (ie, qpsk data) in matlab simulink
unsing random integer generator.
output should be vector form like [0 1 1 2 0 3 1 2]
how can i do this using simulink and how to set parameters for that .

thanks in advance.
 

Hi;
This may help you;
round(3*rand(1,N)) where N is the length of your vector.
 

opps!!!!!!!!! i need to do this in matlab simulink, not in code . please help me out.
 

sorry, missed that point.
But if you cannot achieve doing so in Simulink, may be you can try somethink like this (in worst case)
**broken link removed**
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top