Author Topic: Easy question- matrix multiplication  (Read 559 times)

Offline jsvlad

  • Newbie
  • *
  • Posts: 1
  • Matlab Forum
    • View Profile
Easy question- matrix multiplication
« on: December 18, 2010, 04:06:31 PM »
Just getting new to matlab..
professor put on slide:
 
price = [2 3 4; 2 4 5];
quantity = [4,1; 0 2; 2 1];
 
price* quantity
 
2 3 4    *   4 1   = 16  12
2 4 5         0  2     18   15
                 2  1
 
 
ans =
   16  12
  18  15
 
I dont understand how these answers popped out. if anybody can help that would be great!
jsvlad
« Last Edit: December 18, 2010, 04:08:22 PM by jsvlad »

Matlab and SimuLink Development Forum

Easy question- matrix multiplication
« on: December 18, 2010, 04:06:31 PM »