The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: finding index of any element in a matrix
Replies: 6   Last Post: Jun 24, 2013 2:07 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Nasser Abbasi

Posts: 6,677
Registered: 2/7/05
Re: finding index of any element in a matrix
Posted: Jun 24, 2013 5:42 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

> 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)"


Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.