Advertisement
Guest User

Untitled

a guest
Dec 12th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. %a6q2lhood
  2. function [LV] = a6q2lhood(T,F,LW,freq,vals)
  3. LHSUM = 0;
  4. for i=1:max(size(freq))
  5. LHSUM = LHSUM + (((vals(i) - T*exp(-(((freq(i)-F).^2))/(2*(LW^2)))).^2));
  6. end
  7. %2sigmasqauared is just 2. NEED 1/T
  8. LV= (1/T)*exp(-LHSUM/2);
  9. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement