defaultlimits.m
来自「基于声源的方向定位程序」· M 代码 · 共 13 行
M
13 行
function limits = defaultLimits(arr)% defaultLimits calculate plotting limits since user didn't supply them% % limits = defaultLimits(arr)% Given arr, a 2xN array of phone positions, calculate plotting limits% that leave as much space around the array in x and y as the extent of% the array itself. The extent is the maximum of the extent in x and y.A = [min(arr'); max(arr')];extent = max(diff(A));limits = [1;1] * mean(A) + extent * [-1.5 -1.5; 1.5 1.5];limits = limits(:)';
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?