profile on
%%%            filename    exercises1.m
% This script file contains matlab commands followed by a  PAUSE
% To execute these commands enter the filename     exercises1
echo on
A=rand(8)
pause
min(A)                 %  row of min in columns
min(A,[],2)                 %  col of min in rows
pause
[iinds,jinds]=find(A>.85);
[iinds jinds]
pause
%%%%
for ii=4:8,
   B=magic(ii)
   [sum(B); sum(B')]
   [trace(B) trace(B([ii:-1:1],:))]
   [trace(B) trace(flipdim(B,1))]
   pause
end
d=1./[1:8]
format rat
T=toeplitz(d)
format
pause
A=round(randn(5))
A(1:size(A)+1:end)=pi
pause
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%Scripts and Functions%%%%%%%%%%%%%%%%%
profile report
