flipx.m
来自「JLAB is a set of Matlab functions I have」· M 代码 · 共 29 行
M
29 行
function[]=flipx% FLIPX Flips the direction of the x-axis% _________________________________________________________________% This is part of JLAB --- type 'help jlab' for more information % (C) 2002, 2004 J.M. Lilly --- type 'help jlab_license' for details if strcmp(get(gca,'xdir'),'normal') set(gca,'xdir','reverse') breverse=1;elseif strcmp(get(gca,'xdir'),'reverse') set(gca,'xdir','normal') breverse=0;end%Update for compatibility with ZOOLif isappdata(gcf,'xlimitslock') if getappdata(gcf,'xlimitslock') h=gca; hall=axeshandles; for i=1:length(hall) if breverse set(hall(i),'xdir','reverse') else set(hall(i),'xdir','normal') end end endend
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?