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

📄 wrap.m

📁 荷兰Delft大学开发的insar(干涉合成孔径雷达)图像处理部分源代码
💻 M
字号:
function wrapped = wrap(imatrix);% WRAP(MATRIX)  wrap (phase values) to principal interval.%   MAT = WRAP(MATRIX); wrap to principal interval%   return MAT wrapped MATRIX to principal interval [-pi,pi)%   wrapped = mod(imatrix+pi,2*pi) - pi; (note: not rem).%%   See also RESIDUES, MOD, REM.%% $Revision: 1.6 $  $Date: 2001/09/28 14:24:34 $% Bert Kampes, 01-Mar-2000if (~isreal(imatrix)) helphelp; break; end;% old: slow?% old: complex: %wrapped = atan2(sin(imatrix),cos(imatrix));%wrapped = mod(imatrix,2*pi);%wrapped = rem(imatrix+pi,2*pi) - pi;% not rem! (signed)wrapped = mod(imatrix+pi,2*pi) - pi;% might be more efficient for only few 2b wrapped, but not in general.% xxx          = find(abs(imatrix)<pi);% imatrix(xxx) = mod(imatrix(xxx)+pi,2*pi) - pi;% wrapped      = imatrix(xxx);%%% EOF

⌨️ 快捷键说明

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