Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- %a6q2lhood
- function [LV] = a6q2lhood(T,F,LW,freq,vals)
- LHSUM = 0;
- for i=1:max(size(freq))
- LHSUM = LHSUM + (((vals(i) - T*exp(-(((freq(i)-F).^2))/(2*(LW^2)))).^2));
- end
- %2sigmasqauared is just 2. NEED 1/T
- LV= (1/T)*exp(-LHSUM/2);
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement