octave-maintainers
[Top][All Lists]
Advanced

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

Re: trouble with refreshdata?


From: John W. Eaton
Subject: Re: trouble with refreshdata?
Date: Tue, 23 Mar 2010 17:47:50 -0400

On 23-Mar-2010, Ben Abbott wrote:

| Ok, I think I see what changed. The changeset below changed how cell2mat 
behaved when the input was a cell of cells.
| 
|     http://hg.savannah.gnu.org/hgweb/octave/rev/c0d0b6e37a36
| 
| I made a trivial change to allow cell2mat to work for ...
| 
| octave:1> cell2mat ({{1},{2},{3}})
| ans =
| 
| {
|   [1,1] =  1
|   [1,2] =  2
|   [1,3] =  3
| }
| 
| Is there any reason why this example should give an error?

I'm guessing the change was made for compatibility with Matlab.

Presumably, the output of cell2mat should be a matrix, not a cell
array.  So maybe we should keep cell2mat as it is now and fix this
problem in refreshdata.m instead?

I checked in the following change.

  http://hg.savannah.gnu.org/hgweb/octave/rev/59967776ed4a

Thanks,

jwe


reply via email to

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