function res = lstd(lambda, t, h)
%LSTD Least Squares Time Domain for Experimental Modal Analysis
% RES = LSTD(LAMBDA, T, H) fits and returns the residues corresponding
% to the complex poles stored in the column vector LAMBDA and the impulse
% responses H(T) stored in the rows of H.

% EMA Toolbox
% Peter Fiala, 2008. feb.

res = h / exp(lambda * t);
end