help-octave
[Top][All Lists]
Advanced

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

Re: Meaning of * (mtimes) for nd-arrays


From: Marco Atzeri
Subject: Re: Meaning of * (mtimes) for nd-arrays
Date: Mon, 15 Feb 2016 10:53:18 +0100
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1

On 15/02/2016 10:41, Marco Caliari wrote:
Dear all,

I recently discovered that [1;2;3;4]*ones(1,1,3), for instance, gives a
four-by-three matrix. I would have expected an error (like in Matlab) or
a four-by-one-by-three array. So, what is the definition? Is it just
squeeze("outer product")? Is it documented? A similar thing happens with
kron.

Thanks,

Marco


http://www.gnu.org/software/octave/doc/interpreter/Broadcasting.html#Broadcasting



reply via email to

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