plotphones.m
来自「基于声源的方向定位程序」· M 代码 · 共 23 行
M
23 行
function plotPhones(arr, limits)%plotPhones Plot hydrophone/microphone positions, adjust axis limits.%% plotPhones(arr, limits)% Plot the phone positions, set the axis limits to the values given,% turn hold on. Arr is an array of N phone positions, sized 2xN.% Limits is [xMin xMax yMin yMax]; if it's missing or [], a default% is used.if (nargin < 2), limits = []; endif (isempty(limits)) limits = defaultLimits(arr);endclfplot(arr(1,:), arr(2,:), '*');hold on% Plot (0,0) point -- the ship, perch, etc.plot(0, 0, 'or', 'LineWidth', 3)axis(limits);drawnow
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?