Text-only
Table of Contents (
frame
/
no frame
)
(8) Array Multiplication
Array Multiplication (.*)
Rules of Array Multiplication
Matrices must have the same dimensions
Dimensions of the resulting matrix are the same as the two multiplied matrices
Resulting elements are the product of corresponding elements in the multipied matrices
Try:
>> a = [ 1 2 3 ; 4 5 6]
a =
1 2 3
4 5 6
>> b=[1:3; 1:3]
b =
1 2 3
1 2 3
>> c = a.*b
c =
1 4 9
4 10 18
Array_Multiplication.src last modified Sep 29, 2009
Introduction
Table of Contents
(
frame
/
no frame
)
Printable
(single file)
© Dartmouth College