[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: probably simple syntax error, I'm confused by bsxfun error
From: |
Andreas Weber |
Subject: |
Re: probably simple syntax error, I'm confused by bsxfun error |
Date: |
Fri, 1 Sep 2017 13:59:06 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 |
Hi Tim, please use bottom or interleaved posting style on the mailinglist.
Am 01.09.2017 um 13:10 schrieb Tim Pierce:
> Okay, well that makes bsxfun pretty redundant for me... or anyone... thx
The important part on bsxfun is the "expansion", for example in
bsxfun (@plus, [1,2,3], [10;20])
without this you would have to repmat both argument to the matching size
of the other. Ans btw, there is automatic broadcasting since 3.8:
octave:3> [1,2,3]+[10;20]
ans =
11 12 13
21 22 23
HTH, Andy