help-octave
[Top][All Lists]
Advanced

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

Re: mat2cell defaults


From: Jordi Gutiérrez Hermoso
Subject: Re: mat2cell defaults
Date: Mon, 9 Jan 2012 14:31:01 -0500

On 9 January 2012 14:27, Muhali <address@hidden> wrote:
> Is it possible to have a default mat2cell behavior?
>
> To me, the most obvious result is, e.g.,
>
> mat2cell([1 2 3; 3 2 1]) = {1, 2, 3; 3, 2, 1},
>
> that is, turn the matrix into a corresponding cell array of the entries if
> no extra arguments are provided.
>
> No?

No, Matlab compatbility, blah blah blah.

Use num2cell instead.

- Jordi G. H.


reply via email to

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