[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: varargout{:} = func() ?
From: |
FW |
Subject: |
Re: varargout{:} = func() ? |
Date: |
Tue, 23 Feb 2010 18:47:04 -0800 |
> v =
> []
> []
> []
>
>>> v{:} = rand(1,2)
> v = [1x2 double]
>
> My impression is that this isn't very new, but as I've always found some of
> how Matlab handles cells to be counter intuitive (if not misleading), so I'm
> not in the habit of using this notation.
Do you have a way of returning a cell array of results that packages
up the variable outputs? That is the reasonable problem this notation
solves, even if the syntax is not so reasonable.
Re: varargout{:} = func() ?, Jaroslav Hajek, 2010/02/23