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 - Simulink

Status
Not open for further replies.

ashwini1

Member level 1
Joined
Jul 17, 2009
Messages
32
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,288
Location
Bangalore
Activity points
1,483
Hi,

How do i generate random numbers between given limits in simulink. For ex: between 25 - 30. At every sample time one of the value between 25 to 30 should be given out. (could be25, 26 , 30, 28, 25, 29, etc.,)

Thanks,
Ashwini
 

Hi
Its simple.
Use the following blocks.
1) Insert Uniform Random Number and change the minimum and maximum to 25 and 30.
2) Connect the Rounding Function and change function to round.

You are done!
 

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.
ran_integer_generator.JPG
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top