%% Square a Matrix
% Create a 2-by-2 matrix and square it.

A = [1 2; 3 4];
C = A^2

% The syntax A^2 is equivalent to A*A.
% Copyright 2012 The MathWorks, Inc.