%
%  Name:   loadmat
%
%  Usage:  loadmat
%
%  Loads the  model matrices for the model correlation tasks
%
%  The following variable must be defined prior to calling
%   this script:
%  
%   damsuf = '_u' or '_d' to define whether the matrices
%            should be placed in the undamaged or damaged
% 	     model sets
%

%  Version SWD970114
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% This matlab source code was originally     %
% developed as part of "DIAMOND" at          %
% Los Alamos National Laboratory. It may     %
% be copied, modified, and distributed in    %
% any form, provided:                        %
%  a) This notice accompanies the files and  %
%     appears near the top of all source     %
%     code files.                            %
%  b) No payment or commercial services are  %
%     received in exchange for the code.     %
%                                            %
% Original copyright is reserved by the      %
% Regents of the University of California,   %
% in addition to Scott W. Doebling, Phillip  %
% J. Cornwell, Erik G. Straser, and Charles  %
% R. Farrar.                                 %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


eval(['load ',[pathname,filename]]);

if exist('filename') == 1,

   eval([' filename_mat',damsuf,' = filename;'])

   clear filename

end


if exist('M')==1,

  eval([' M',damsuf,' = M;'])
  
  clear M

end

if exist('K') == 1,

      eval([' K',damsuf,' = K;'])
      clear K

end

if exist('matrixDOF')

  eval([' matrixDOF',damsuf,' = matrixDOF;'])
   clear matrixDOF

end

