Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
generate random number

Subject: generate random number

From: amira ali

Date: 18 Oct, 2012 08:00:19

Message: 1 of 2

hello

 i want to generate random number Uniformly distributed such as
 
i have data size of it 10,000 and i want to generate random number every 500 iteration

Subject: generate random number

From: amira ali

Date: 18 Oct, 2012 09:02:09

Message: 2 of 2

"amira ali" wrote in message <k5ocuj$88p$1@newscl01ah.mathworks.com>...
> hello
>
> i want to generate random number Uniformly distributed such as
>
> i have data size of it 10,000 and i want to generate random number every 500 iteration

 C = X(randSample(N,k),:);
when i use randomsample method deosn't gve me uniform distribuation,please anyone reply to me

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us