From help-request at octave dot org Wed Sep 21 18:51:05 2005 Subject: Re: help From: "Henry F. Mollet" To: Mike Miller CC: David Bateman , shashi kumar , , Octave_post Date: Wed, 21 Sep 2005 16:49:47 -0700 This is curious as I thought this was in my ancient Octave manual. I fired up 2.1.46 on old iMac and below worked just fine. Henry on 9/21/05 3:59 PM, Mike Miller at mbmiller at taxa dot epi dot umn dot edu wrote: > On Wed, 21 Sep 2005, Henry F. Mollet wrote: > >> Method is probably not new and deletes rows of a matrix according to >> given condition (values larger than 3 in col 3 in the following example, >> second example uses row 3 for which no elements are < 3). > > Example: > > X=rand(3); > X(2,:)=[]; > > Deletes row 2 from X. > > This version won't do it: > > GNU Octave, version 2.1.50 (i686-pc-linux-gnu) > > (It says the assignment can't be done because the matrices are not of the > same size.) But 2.1.71 under Cygwin does it correctly. > > I like this new (for me) trick and I thank you for teaching me about it! > > Mike ------------------------------------------------------------- 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 -------------------------------------------------------------