dotplot.m

来自「code of an ADC implementation woith matl」· M 代码 · 共 28 行

M
28
字号
function dotplot(p,fmt)%function dotplot(p,fmt)%Plot dots with format fmtif nargin < 2     fmt = '.';endif size(p,1) == 2    plot( p(1,:), p(2,:), fmt);elseif size(p,1) == 3    subplot(221);    plot(p(1,:),p(2,:),fmt);    subplot(222);    plot3(p(1,:),p(2,:),p(3,:),fmt);    subplot(224);    plot(p(1,:),p(3,:),fmt);    subplot(223);    plot(p(2,:),p(3,:),fmt);elseif size(p,1) == 4    subplot(221);    plot3(p(1,:),p(2,:),p(3,:),fmt);    subplot(222);    plot3(p(1,:),p(2,:),p(4,:),fmt);    subplot(223);    plot3(p(1,:),p(3,:),p(4,:),fmt);    subplot(224);    plot3(p(2,:),p(3,:),p(4,:),fmt);end

⌨️ 快捷键说明

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