⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rec_frommag_complex.m

📁 这是一个关于多输入多输出系统的频域忙识别系统的matlab源码
💻 M
字号:
function g=rec_frommag_complex(M,I,N);
%------------------------------------------------------------------------------
%	rec_frommag_complex.m
%	This function generate the fourth order cross cumulant of 4 signals
%
% Usage:
%	 [g] = rec_frommag_complex(M,I,N);
% Where
%	g         : the reconstructed time-domain signal.
%	M         : the magnitude response.
%	I         : the index of the frequencies to be used in the reconstruction.
%	N         : the length of the time-domain signal to be reconstructed.
% 
%  Communications and Signal Processing Laboratory
%  ECE Department, Drexel University
%  Philadelphia, PA 19104, USA
%  http://www.ece.drexel.edu/CSPL
%-------------------------------------------------------------------------------

NF=length(M);

theta=zeros(size(M));
tmp=M;

for i=1:600
   	G=tmp.*exp(j*theta);
      g=(ifft(G));
      g(N+1:NF)=zeros(1,NF-N);	
      g=real(g);	
      G=fft(g,NF);
      theta=phase(G);
      
      tmp=abs(G);
		tmp(I)=M(I);
		%tmp=[tmp(1:NF/2+1) fliplr(tmp(2:NF/2))];
end
g=g(1:N);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -