Jed's Octave Assignment: Difference between revisions

From Class Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 4: Line 4:


> a = [2,3,-4,5;4,-6,9,0;9,3,4,6]
> a = [2,3,-4,5;4,-6,9,0;9,3,4,6]

a =


2 3 -4 5
2 3 -4 5
Line 12: Line 12:


> b = [1,4,5;4,8,-9;-82,6,0;]
> b = [1,4,5;4,8,-9;-82,6,0;]

b =


1 4 5
1 4 5

Latest revision as of 09:51, 1 October 2010

. Here I used octave to multiply a 3x3 matrix by a 3x4 matrix.


> a = [2,3,-4,5;4,-6,9,0;9,3,4,6]


  2   3  -4   5
  4  -6   9   0
  9   3   4   6


> b = [1,4,5;4,8,-9;-82,6,0;]


   1    4    5
   4    8   -9
 -82    6    0

> b*a ans =

   63    -6    52    35
  -41   -63    20   -34
 -140  -282   382  -410