[Top][All Lists]

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

Re: mapper functions vs. cell arrays

From: John W. Eaton
Subject: Re: mapper functions vs. cell arrays
Date: Fri, 1 Sep 2006 09:19:42 -0400

On  1-Sep-2006, David Bateman wrote:

| Thinking about this a bit more, the octave cellfun effectively assumes
| that "UniformOutput" is false and so all results are given in a cell
| array. "UniformOutput" being "true" equivalent in octave would be
| cell2mat(cellfun (@upper, {'f', 'o', 'o'}))
| So matlab just made the default output of cellfun different from octave
| so the output is incompatible. If we want to make cellfun compatible
| then the want we might do is make cell2mat and oct-file in cellfun.cc
| and call it on the outputs if "UniformOutput" is "true".
| I'll make a cellfun that is matlab compatible if you want it... I'll do
| it after work today...

Yes, if you have time and would like to do it that would be great.



reply via email to

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