responsefourier

PURPOSE ^

'Respuestafourier' computes the non-linear response when using Fourier as

SYNOPSIS ^

function r=responsefourier(bloque,lcuan,H,k1,k2);

DESCRIPTION ^

 'Respuestafourier' computes the non-linear response when using Fourier as
 lineal transformation

 USE: r = responsefourier(bloque,lcuan,H,k1,k2);

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 % 'Respuestafourier' computes the non-linear response when using Fourier as
0002 % lineal transformation
0003 %
0004 % USE: r = responsefourier(bloque,lcuan,H,k1,k2);
0005 
0006 function r=responsefourier(bloque,lcuan,H,k1,k2);
0007 
0008 M=lcuan;
0009 
0010 ang = linspace(0,pi/2,5);
0011 v = [reverse(cos(ang)) ones(1,M-2*5) cos(ang)];
0012 pesos = v'*v;
0013 
0014 observado2 = bloque.*pesos + (1-pesos).*mean(mean(bloque));
0015 
0016 cub = fft2(observado2);cub = 2*cub/cub(1,1);cub = abs(cub);
0017 
0018 cub(1,1)=0;
0019 
0020 cub=fftshift(cub);
0021 
0022 M=size(cub,1);
0023 
0024 cublin=zigzag(cub);
0025 
0026 cubcub=cublin.^2;
0027 
0028 num = k1.*cubcub;
0029 den = k2 + H*cubcub;
0030 
0031 r=num./den;
0032 
0033 r=dezigzag(r);
0034

Generated on Fri 07-Mar-2014 13:28:33 by m2html © 2005