translatt.m

来自「Lattice coding and decoding」· M 代码 · 共 36 行

M
36
字号
function trlatt = translatt(latt,trvect)%TRANSLATT Lattice translation%   Q = TRANSLATT(L,TRVECT) performs lattice translation into desired%   direction. TRVECT assigns a value to each dimension to be translated.%%   Example:%       We decompose Z2 lattice into the four cosets and label each one%       by the letters A,B,C and D%%       pts = 2 ^ 4;%       Z2 = makelatt('Z',pts,2);%       A = Z2;%       B = translatt(Z2,[0,.5]);%       C = translatt(Z2,[.5,0]);%       D = translatt(Z2,[.5,.5]);% %       showlatt(A,'Style',7,'Labeling','A'); hold on;%       showlatt(B,'Style',8,'Labeling','B');%       showlatt(C,'Style',9,'Labeling','C');%       showlatt(D,'Style',10,'Labeling','D');%%   See also ROTLATT.%   Copyright 2001-2003 Kamil Anis, anisk@feld.cvut.cz%   Dept. of Radioelectronics, %   Faculty of Electrical Engineering%   Czech Technical University in Prague%   $Revision: 0.1 $  $Date: 2003/1/16 17:33:28 $%   --%   <additional stuff goes here>[m,n] = size(latt);tr = repmat(trvect,m,1);trlatt = latt + tr;

⌨️ 快捷键说明

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