?? lollipop.m
字號:
function lollipop(x,y,color,lw)% lollipop(x,y,color,lw) Plot lollipops (o's and sticks)if nargin<4 lw = 2; if nargin<3 color = ''; endendh = ishold;hold on;%Plot circlesplot(x,y,['d' color], 'linewidth', lw);% Make x and y row vectors, then plot as sticksx = x(:)'; y = y(:)';x = [x;x;nan*ones(size(x))];y = [y;zeros(2,length(y))];plot(x(:),y(:),color, 'linewidth', lw);if ~h hold off;end
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -