constel.m

来自「ofdm_64QAM_simulation,只是进行的初步的实验,大家仅仅供参考」· M 代码 · 共 29 行

M
29
字号
% 64QAM views Constelation
% x = 7,5,3,1,-1,-3,-5,-7; y = 7,5,3,1,-1,-3,-5,-7;

function Constel(data,SubCarrier)

Len=length(data);
Ne = Len/SubCarrier;

Real_dat=real(data);
Image_dat=imag(data);

for Num=1:8,
%Num = input ('Enter is SubCarrier of Number(1~32): ');
   for ip=1:Ne,
      % for np=1:SubCarrier,
         temp_Re(ip)=Real_dat(SubCarrier*(ip-1)+Num);
         temp_Im(ip)=Image_dat(SubCarrier*(ip-1)+Num);
      %end;
   end; 
    	disp('Enter to see the plot of the OFDM signal spectrum')
              
       figure(4)
       subplot(2,4,Num);
       plot(temp_Re,temp_Im,'*'),grid;
       
       axis([-10 10 -10 10])
       %axis([-30 30 -30 30])
    end;
    

⌨️ 快捷键说明

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