sharing everything

Matlab : Create Random Data in Range

We can create random data in Matlab with command :

  • rand (Uniformly distributed pseudorandom numbers)
  • randn (Normally distributed random numbers)
  • unifrnd (Continuous uniform random numbers)
  • random (Random numbers)

If we want to create random data in range, we can use unifrnd function. Example :

unifrnd (1 , 10 , [5,1])

This command will create random data in range 1 to 10 with output row=5 and column=1.

My name is Toto Sugito. This is my notes when I try something. Maybe, this is NOT THE BEST SOLUTION for your problems. If you have other method or idea that better with my post, please share in this blog. Thank for visiting my site.

1 Comment

  1. March 16, 2011    

    apaan tuh?

Leave a Reply

Your email address will not be published. Required fields are marked *

 

Categories

Bloggers - Meet Millions of Bloggers