In line 57, `sta = sta / norm(sta) ; ` % the STA is normalized to 1 The `norm()` function returns a Euclidean norm, i.e, $$ ||v|| = \sqrt \sum_{k=1}^N |v_k|^2 $$ So, the sta is not normalized to 1.
In line 57,
sta = sta / norm(sta) ;% the STA is normalized to 1The
norm()function returns a Euclidean norm, i.e,So, the sta is not normalized to 1.