%% Square Each Element of Vector
% Create a vector, A, and square each element.

A = 1:5;
C = A.^2

% Copyright 2012 The MathWorks, Inc.