From: nethaji anandhavalli on 16 Apr 2010 10:00 hello sir, i have got a signal, i have made dwt of it so, [C,L] = dwt(y,'db4'); now i need to find the energy of those coefficients C and L. so i made this program. but when i run this, its keep on running, because, the signal range for 2000 samples. so wat i have decide is, based on threshold value, i can cut down some samples. where that threshold function need to inserted in between this program.? pls help me. L=2000 N=2000 for i=1:L-1 for j=1:N-1 temp1 = ca1(i) temp2 =ca1(j) temp3 = temp1*temp2 energy1 = energy1 + (temp3 * temp3) end end
|
Pages: 1 Prev: Rotate the Tick Next: How to save current configuration settings to script file |