help-octave
[Top][All Lists]
Advanced

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

Re: Synonym


From: Kai Torben Ohlhus
Subject: Re: Synonym
Date: Thu, 9 Apr 2020 13:26:08 +0900
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0

On 4/9/20 11:52 AM, Thomas D. Dean wrote:
> On 2020-04-08 12:02, John W. Eaton wrote:
>> On 4/8/20 12:59 PM, Tony Richardson wrote:
>>
>>> I've noticed that the two cases:
>>>
>>>     varargout = cell (nargout, 1);
>>>     [varargout{:}] = svd(varargin{:});
>>>
>>> and
>>>     [varargout{1:nargout}] = svd(varargin{:});
>>>
> [...]
> 
> This seems to fail.
> 
> octave:21> function varargout = xsvd (varargin)
>>   numel (varargin)
>>   [varargout{:}] = svd (varargin{:});
>> end
> 
> [...]
> 
> Tom Dean
> 

Please watch carefully at the two cases above, you unfortunately mixed
them up.

  function varargout = xsvd (varargin)
    [varargout{1:nargout}] = svd(varargin{:});
  endfunction

HTH,
Kai



reply via email to

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