function smat = viewmat(stub)
%    smat = viewmat(stub)
%       view matrix stored as (i,j,val) in file stub.dat
%

if (nargin ~= 1)
   error 'usage: viewmat(stub)';
end

eval (['load ' stub '.dat -ascii']);
stubvar = eval(stub);
smat = spconvert(stubvar);
spy(smat);
