help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: index problems


From: pablo nicholson
Subject: Re: index problems
Date: Thu, 25 Oct 2001 16:26:57 -0300

Thanks! You have found the solution.

Maybe there is a problem with the help file here: when you ask help with

help -i expressions

this is what you get:

A special form of indexing may be used to select elements of a
matrix or vector.  If the indices are vectors made up of only ones and
zeros, the result is a new matrix whose elements correspond to the
elements of the index vector that are equal to one.  For example,

     a = [1, 2; 3, 4];
     a ([1, 0], :)

selects the first row of the matrix `a'.

But as you have seen this is not true (and that was my problem), because

you need to introduce some kind of logical operator. Maybe this was the
way
it worked in older versions (at least, this is the way it worked in a
very old matlab version), and now it has been changed...

thanks again

pablo

Attachment: pnicho.vcf
Description: Tarjeta de pablo nicholson


reply via email to

[Prev in Thread] Current Thread [Next in Thread]