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

📄 iqam.m

📁 linear time-frequency toolbox
💻 M
字号:
function xo=iqam(xi,order)%IQAM  Inverse QAM modulation of signal.%%    order must be a power of 2.%    xo is a vector of 0's and 1's. if mod(log2(order),1)~=0  error('order must be a power of 2.');end;% Get the optimal ordering of bitsbitorder=circbitflip(order);% nbits is number of bits used. Everything will be ordered% in groups of this size.nbits=log2(order);symbols=length(xi);L=symbols*nbits;% We round the argument of the complex numbers to the closest root of% unity of order "order"work=round(angle(xi)/(2*pi)*order);% work now contains negative numbers. Get rid of thesework=mod(work,order);% Reverse the optimal bit ordering.reversebitorder=zeros(order,1);reversebitorder(bitorder+1)=(0:order-1).';% Apply the reverse orderingwork=reversebitorder(work+1);xo=zeros(nbits,symbols);% Reconstruct the bitsfor bit=1:nbits  xo(bit,:)=bitget(work,bit).';end;xo=xo(:);

⌨️ 快捷键说明

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