From help-octave-request at bevo dot che dot wisc dot edu Thu Oct 25 14:29:34 2001 Subject: Re: index problems From: pablo nicholson To: help-octave at bevo dot che dot wisc dot edu Date: Thu, 25 Oct 2001 16:26:57 -0300 Este es un mensaje multipartes en formato MIME. --------------54464FDEA816AFAF8A5F8B38 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 --------------54464FDEA816AFAF8A5F8B38 Content-Type: text/x-vcard; charset=us-ascii; name="pnicho.vcf" Content-Transfer-Encoding: 7bit Content-Description: Tarjeta de pablo nicholson Content-Disposition: attachment; filename="pnicho.vcf" begin:vcard n: Nicholson;Pablo tel;work:4349-5644 x-mozilla-html:TRUE org:Ministerio de Economía adr:;;Hipólito Yrigoyen 250 piso 8 of. 838A ;Buenos Aires;;1086AAB;Argentina version:2.1 email;internet:pnicho at mecon dot gov dot ar x-mozilla-cpt:;0 fn:Pablo Nicholson end:vcard --------------54464FDEA816AFAF8A5F8B38-- ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------