logbar.m

来自「Continuous Profile Models (CPM) Matlab T」· M 代码 · 共 9 行

M
9
字号
function bh=logbar(x,y)% Bar vertices have 0-values, this is no good when taking% log...% Find them and replace with a small value.bh=bar(x,y);v=get(get(bh,'Children'),'Vertices');v(v==0)=.01; % You may want to change the value 0.01set(get(bh,'Children'),'Vertices',v);set(gca,'YScale','log') 

⌨️ 快捷键说明

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