function stdspec = stdize(nspec,stdmat,stdvect); %STDIZE Standardizes new spectra using transform from STDGEN % I/O format is: stdspec = stdize(nspec,stdmat,stdvect); % Copyright 1997 % Eigenvector Research, Inc. % Barry M. Wise % Modified May 30, 1997 [ms,ns] = size(nspec); [mm,nm] = size(stdmat); [mv,nv] = size(stdvect); if (ns~=mm | nm~=nv) error('Spectrum, transfer matrix and background vector sizes not compatible') end stdspec = nspec*stdmat + ones(ms,1)*stdvect;