%% Multiply Two Arrays
% Create two arrays, A and B.

A = [1 3 5; 2 4 7];
B = [-5 8 11; 3 9 21; 4 0 8];

%
% Calculate the product of A and B.

C = A*B

%
% Calculate the inner product of the second row of A and the third column of B.

A(2,:)*B(:,3)

% This answer is the same as C(2,3).
% Copyright 2012 The MathWorks, Inc.