help-octave
[Top][All Lists]
Advanced

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

Re: inconsitency in behavior of 'size'


From: Mike Miller
Subject: Re: inconsitency in behavior of 'size'
Date: Sat, 10 Mar 2018 00:34:10 -0800
User-agent: Mutt/1.9.3 (2018-01-21)

On Fri, Mar 09, 2018 at 21:42:37 +0000, Sergei Steshenko wrote:
> I don't agree with that. Because the final result, which is 
> [_1,_2], is the same - regardless whether I do the assignment as
> 
> ([_1,_2] = sort(im(:, 3), "descend"))
> 
> or
> 
> [_1,_2] = sort(im(:, 3), "descend").

Then that seems to be where your misunderstanding is. Both of those
statements are equivalent, but the syntax [_1,_2] on the left hand side
of the assignment is not a matrix, it is a comma-separated list.

https://www.gnu.org/software/octave/doc/interpreter/Comma-Separated-Lists.html
https://www.mathworks.com/help/matlab/matlab_prog/comma-separated-lists.html

-- 
mike

Attachment: signature.asc
Description: PGP signature


reply via email to

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