conv_mix.m 823 B

1234567891011121314151617181920212223242526272829
  1. function x=conv_mix(A,s);
  2. % Convolutive mixing process - V1.2
  3. %
  4. % Inputs
  5. % A : mixing tensor whose A(i,j,:) element is the filter associated to the
  6. % j^th source and to the i^th observation
  7. % s : source vector
  8. %
  9. % Output
  10. % x : observation vector
  11. %
  12. % -------------------------------------------------------------------------
  13. % History of the software:
  14. % V1.1: original software written by J. Thomas
  15. %
  16. % V1.2: Error messages appeared with recent releases of Matlab in the function
  17. % conv_mix. This version corrects them.
  18. % Author: Matthieu PUIGT Contact: matthieu.puigt@univ-littoral.fr
  19. %
  20. % -------------------------------------------------------------------------
  21. x=zeros(size(A,1),size(s,2));
  22. for i=1:size(A,1)
  23. for j=1:size(s,1)
  24. x(i,:)=x(i,:)+filter(reshape(A(i,j,:),size(A,3),1,1),1,s(j,:));
  25. end
  26. end