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

📄 gaborcons.m

📁 gabor algorithm in matlab
💻 M
字号:
clear all;M=input('enter M');     % M - No of translations N=input('enter N');     % N - No of Modulationsx=input('elements of signal are');L=M*N;                  % L-Length of the Transform x=x.';%----------------------------Gaussian Function---------------------------%according to wexler and razfor k=1:L    h(k)=sqrt(sqrt(2)/N)*exp(-pi*((k-L/2)/N)^2);end;%----------------------------Fourier Matrix-----------------------------w=exp((2*pi*j)/N);for i=0:N-1    for j=0:N-1        W(i+1,j+1)=w^(i*j);          %verified(no normalization)    end;end;E=[];for a=0:M-1;E=blkdiag(E,W);endE=(1/sqrt(N))*E;%-----------------------------caculatin H-------------------------------for count=1:L        i=count;    j=rem(count,N);    if j==0        j=N;    end;    for p=1:M        if i>L            i=i-L;        end;        if j>L            j=j-L;        end;                H(i,j)=h(count);        i=i+N;        j=j+N;    end;               end;%---------------------------finally gabor-------------------------------inE=inv(E);inH=inv(H);a=inv(H*E)*x;%-----------------------------inverse gabor------------------------------signal=H*E*a;

⌨️ 快捷键说明

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