hammsphere.m

来自「bchweight.m」· M 代码 · 共 17 行

M
17
字号
function V = Hammsphere(n,q,t)%function V = Hammsphere(n,q,t)%% Compute the number of vectors in a Hamming sphere of radius t% in a q-ary code of length n% Todd K. Moon, May 25, 2004% Copyright 2004 by Todd K. Moon% Permission is granted to use this program/data% for educational/research onlyV = 0;for s=0:t  V = V + nchoosek(n,s)*(q-1)^s;end

⌨️ 快捷键说明

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