?? translatt.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 + -