%% Problem 1:
% given:
A = [ 34 56 31; -45 6 43 ]
%%
% compute:
size(A)
A.^2
% demonstrates component-wise squaring

%% Problem 2:
% given:
abc = 1:10
def = 5:14

%%
% compute:
ghi = 3*abc + def + 1
% demonstrates scalar mult and addition

%% Problem 3:
% given:
abc = [1 2 3 4;5 6 7 8]
def = [4 3 2 1;0 -1 -3 3]

%%
% compute:
%abc*def
abc*def'
abc'*def
abc.*def
% demonstrates the correct way(s) to multiply matrices

%% Problem 4:
% given 

    % (note that this requires the symbolic toolbox to be installed)
syms x
f=x+cos(x)^2

%%
% compute the integral
I=int(f)

%%
% compute the integral and display as if typeset:
pretty((int(f)))

%%
% plot the integral on [-2 pi 2 pi]
ezplot(I,[-2*pi 2*pi])
