From bug-octave-request at bevo dot che dot wisc dot edu Tue Apr 4 15:09:57 2000 Subject: Re: Bug? Size of empty matrix changes From: "John W. Eaton" To: etienne at isr dot isr dot ist dot utl dot pt Cc: bug-octave at bevo dot che dot wisc dot edu, etienne@isr.ist.utl.pt Date: Tue, 4 Apr 2000 15:09:47 -0500 (CDT) On 4-Apr-2000, etienne grossmann wrote: | From: "John W. Eaton" | # On 3-Apr-2000, etienne grossmann wrote: | # | # | is it normal that the size of 'a' changes, in the example below? | # | | # | octave:136> a=zeros(0,6); for i=1:6, a(:,i)=[], end; | # | a = [](0x5) | # | a = [](0x4) | # | a = [](0x3) | # | a = [](0x3) | # | a = [](0x3) | # | a = [](0x3) | # | # Yes. Assignment of an empty matrix deletes elements. | | Is that intentional? Yes. Read the section on assignment expressions in the manual. jwe ----------------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.che.wisc.edu/octave/octave.html How to fund new projects: http://www.che.wisc.edu/octave/funding.html Subscription information: http://www.che.wisc.edu/octave/archive.html -----------------------------------------------------------------------