is_lattice.m

来自「该文件夹为空间复用空时码的仿真程序」· M 代码 · 共 17 行

M
17
字号
function [lim_output]=IS_LATTICE(constellation,n,u_sup,len)
% check if u_sup is a lattice coordinate
for k1=1:n
    for k2=1:len
        if u_sup(k1)==constellation(k2)
            lim(k2)=1;
        else
            lim(k2)=0;
        end
    end     % end of k2
    if sum(lim)==0  % u_sup(k1) is not valid
        lim_output=0;
        break
    else
        lim_output=1;
    end
end     % end of k1

⌨️ 快捷键说明

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