relax_axes.m
来自「麻省理工学院的人工智能工具箱,很珍贵,希望对大家有用!」· M 代码 · 共 12 行
M
12 行
function relax_axes(p)% RELAX_AXES Increase the size of the axes by p% in each direction% function relax_axes(p)%% This makes points on the boundary easier to seexlim=get(gca,'xlim'); w=xlim(2)-xlim(1); s=p*w;set(gca,'xlim',[xlim(1)-s xlim(2)+s])ylim=get(gca,'ylim'); w=ylim(2)-ylim(1); s=p*w;set(gca,'ylim',[ylim(1)-s ylim(2)+s])
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?