help-octave
[Top][All Lists]
Advanced

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

Re: Incompatable array calculation


From: Julien Bect
Subject: Re: Incompatable array calculation
Date: Tue, 10 Jul 2018 16:44:17 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0

Le 10/07/2018 à 09:57, Miftahur Rahman a écrit :
<http://octave.1599824.n4.nabble.com/file/t372913/Screenshot_from_2018-07-10_15-46-36.png> 

I have started learning Octave today. 
In my attached photo, variale b is an 1x3 array and c is an 3x1 array.
Addition or subtraction of this to variable is not possible. Instead of
error message, i am getting answer which is a 3x3 matrix. what is the
problem?

There is no problem, this behaviour is called "broadcasting" :

https://octave.org/doc/v4.4.0/Broadcasting.html

@++
Julien


reply via email to

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