
% Example for Matrix Visualization

clear
close all

n=10
A=zeros(n,n);

for i=1:n
  for j=1:n
    A(i,j)=exp( 0.1* (i+j) );
   end
end

figure(1)
surf(A)  
title('Example for surf(A)')   
view(30,20)


A=rand(n,n)>0.5
figure(2)
markersize=10
spy(A,markersize)
title('Example for spy(A)')   

