From: nasim on
hi,
i want implement a affine invariant function with this formula:
Fi,j(t)=Wix(t)Wjy(t)-Wiy(t)Wjx(t) where i is not equal j and Wix(t) is wavelet transform of signal x(t) for a certain dyadic scale level i.
i use matlab toolbox with this code:

function d=w(signal,level)
[c,s] = wavedec(signal,level,'db1');
d=detcoef(c,s,2);

and

F=w(x,i)*w(y,j)'-w(y,i)*w(x,j)';

but because w(x,i)=w(x,j) and w(y,i)=w(y,j) for all level of i and j the result of F always is zero.

where is wrong in my code?