From help-request at octave dot org Mon Jan 2 03:33:45 2006 Subject: Re: structures Matlab - Octave From: David Bateman To: Bill Denney Cc: Michael Schmid , help@octave.org, "John W. Eaton" Date: Mon, 02 Jan 2006 10:28:42 +0100 Bill Denney wrote: > On Thu, 29 Dec 2005, David Bateman wrote: > >> This is not a bug... With Matlab R14sp2 I get >> >> a = struct() >> >> a = >> >> 1x1 struct array with no fields. >> >> Which is identical to octave.. The problem is rather that the >> subsasgn of [] doesn't delete elements of the structure array in a >> similar manner to the numerical matrix/array classes. > > > In this case, I think that I introduced a bug into dir.m recently, but > we should probably check what the matlab return is when there is > supposed to be empty output. > > Bill > See other parts of this thread. It returns the same as octave... D. -- David Bateman David dot Bateman at motorola dot com Motorola Labs - Paris +33 1 69 35 48 04 (Ph) Parc Les Algorithmes, Commune de St Aubin +33 1 69 35 77 01 (Fax) 91193 Gif-Sur-Yvette FRANCE The information contained in this communication has been classified as: [x] General Business Information [ ] Motorola Internal Use Only [ ] Motorola Confidential Proprietary ------------------------------------------------------------- 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 -------------------------------------------------------------