help-octave
[Top][All Lists]

## Re: General

 From: Jonathan Camilleri Subject: Re: General Date: Sun, 25 Oct 2015 08:14:42 +0100

Thank you for replying I think you made a wrong guess I am still confused, sorry.  My webmail does not have a subject option visible unfortunately.

error: operator *: nonconformant arguments (op1 is 2x3, op2 is 2x3)
>>
>> A = [1,2,3; 4,5,6];
>> B = [7,8,9,10;11,12];
error: vertical dimensions mismatch (1x4 vs 1x2)
>>

On 25 October 2015 at 07:59, Rod Pierce wrote:
Hi,

Don't know Octave, but to multiply you need to match internal col to row such as [3x2] by [2x3]

Try the Matrix Calculator: http://www.mathsisfun.com/algebra/matrix-calculator.html

Or try (just a guess) in Octave:
A = [1,2,3; 4,5,6];
B = [7,8; 9,10; 11,12];

Yours, Rod Pierce
mathsisfun.com

On 25 October 2015 at 16:50, wrote:
Sender: Jonathan Camilleri
From: http://www.mathsisfun.com/ says:

I am reading your tutorial on matrix multiplication, as a teacher, and, I am trying the following using Octave however Octave is reading that the matrices are incompatible.

>> A = [1,2,3; 4,5,6];
>> B = [7,9,11;8,10,12];
>> C = A*B;
error: operator *: nonconformant arguments (op1 is 2x3, op2 is 2x3)

Having asked the Octave forums they seem not to have seen any mathematical error from their part, would you kindly elaborate with mathematical theory and proof please?

Octave is available by searching online and so are tutorials.

I shall await your reply as I want to confirm whether there is a bug or a mathematical inaccuracy.

--
Jonathan Camilleri

Mobile (MT): ++356 7982 7113