help-octave
[Top][All Lists]
Advanced

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

Re: Incompatable array calculation


From: Sergei Steshenko
Subject: Re: Incompatable array calculation
Date: Tue, 10 Jul 2018 14:51:18 +0000 (UTC)



On Tuesday, July 10, 2018, 5:45:10 PM GMT+3, Julien Bect <address@hidden> wrote:


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


This is horrible bug causing a lot of trouble.

--Sergei.

reply via email to

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