File size: 404 Bytes
7b4139b
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
function env = envelope(p)

    %-- Function which computes the envelope of a modulated signal
    %-- Function prototype: env = envelope(p)
    
    %-- Authors: Alfonso Rodriguez-Molares (alfonso.r.molares@ntnu.no)
    %--          Olivier Bernard (olivier.bernard@creatis.insa-lyon.fr)

    %-- $Date: 2016/03/01 $  

    %-- complex demodulation
    env = reshape(abs(hilbert(p(:,:))),size(p));

end