finlowax.m

来自「vTools is a toolbox for Matlab 5.3 devel」· M 代码 · 共 40 行

M
40
字号
function h=finlowax();

% find lowest axis label handle, used in the bode plot (makeplot)
% added by giampy 21-june-02

h=[];
ch0=get(0,'child');
if isempty(ch0), return, end

% find handle of mvtools window (mv)
for i=1:length(ch0),
    tagmv=get(ch0(i),'tag');
    ltmv=length(tagmv);
    if ltmv>4,
        if tagmv=='MvMain', mv=ch0(i); end
    end
end

% find all objects of type axes
ta=findobj('type','axes');
if isempty(ta), return, end

% find axis if descendant of mv   
lowpos=[1 1 1]*1e12;
for i=1:size(ta,1),
    obj=ta(i);
    while obj ~= 0,
        if ishandle(obj), 
            obj=get(obj,'parent');
            if obj == mv, 
                pos=get(ta(i),'position');
                if pos(2)<lowpos(2), 
                    lowpos=pos;h=ta(i);
                end              
            end
        else obj=0;
        end
    end
end

⌨️ 快捷键说明

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