help-octave
[Top][All Lists]

## Re:

 From: Ozzy Lash Subject: Re: Date: Sun, 25 Oct 2015 01:08:43 -0500

You are trying to multiply a 2x3 matrix by another 2x3 matrix.  The page that you point to multiplies a 2x3 by a 3x2 which is allowable.

>> A=[1,2,3;4,5,6];
>> B=[7,8;9,10;11,12];
>> A*B
ans =

58    64
139   154

Note if you print the A and B matrices you'll see:
>> A
A =

1   2   3
4   5   6

>> B
B =

7    8
9   10
11   12

On Sun, Oct 25, 2015 at 12:52 AM, Jonathan Camilleri wrote:
Just for info, I sent this to the authors of http://www.mathsisfun.com/, as the tutorial at http://www.mathsisfun.com/algebra/matrix-multiplying.html, does not seem to provide the right example, based also on feedback from members of this group.

>> 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)

I do not have a mathematical proof so I have to question at this stage.

--
Jonathan Camilleri

Mobile (MT): ++356 7982 7113

I usually reply to emails within 2 business days.  If it's urgent, give me a call.

and, angel start-up investment opportunities available at http://slyth3.wix.com/jon-business.
Online resume is available online at http://mt.linkedin.com/in/jonathancamilleri and shared bookmarks at

_______________________________________________
Help-octave mailing list