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

📄 translatt.m

📁 Lattice coding and decoding
💻 M
字号:
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -