Thread Subject: integer operands are required for colon operator when used as index

Subject: integer operands are required for colon operator when used as index

From: Ulrik Nash

Date: 24 Jan, 2012 18:27:10

Message: 1 of 2

Why do I get the warning "integer operands are required for colon operator when used as index" in the final line is this code:

vector_examined = rand(items,1); criteria = vector_examined < value; passes = find(criteria);

Subject: integer operands are required for colon operator when used as

From: dpb

Date: 24 Jan, 2012 18:32:39

Message: 2 of 2

On 1/24/2012 12:27 PM, Ulrik Nash wrote:
> Why do I get the warning "integer operands are required for colon
> operator when used as index" in the final line is this code:
>
> vector_examined = rand(items,1);
   criteria = vector_examined < value;
> passes = find(criteria);

Not sure...think we need full sample including the error. The snippet
above doesn't do any such thing here (nor would expect it to).

--

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

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.

Tag Activity for This Thread
Tag Applied By Date/Time
index Ulrik Nash 24 Jan, 2012 13:29:13
rssFeed for this Thread

Contact us at files@mathworks.com