Date: Jun 24, 2013 5:42 AM
Author: Nasser Abbasi
Subject: Re: finding index of any element in a matrix

> the problem is i have taken a matrix
> R = rand(6,4)
> and i gave the same command that you mentioned...
> but it is not giving the answer...

Well, yes, ofcourse, the number 4 will not be in R,
so typing find(R==4) will not return anything.

Matlab rand returns numbers from 0 to 1 only.

"from the standard uniform distribution on the open interval(0,1)"