rotation.m
来自「二维网格点的克里金插值」· M 代码 · 共 12 行
M
12 行
function rotcoord = rotation(coord,alpha)% rotates all coordinates round the coordinate origin for the angle% 'alpha'. a full circle is 2*pi. the rotation is clockwise.%% usage: (rotcoord) = rotation(coord,alpha)% 19.6.2003 Rolf Sidlerrotcoord(:,1) = cos(alpha).*coord(:,1)+sin(alpha).*coord(:,2);rotcoord(:,2) = -sin(alpha).*coord(:,1)+cos(alpha).*coord(:,2);rotcoord(:,3) = coord(:,3);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?