⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 changeguicolors.m

📁 this code invert number of a vector
💻 M
字号:
function changeGuiColors( handles )
    
obj = fieldnames(handles);
for n = 1 : length(obj)
   h = handles.(obj{n});
   if ~isempty(h)
    flipColor( h );
   end
end

function flipColor( h )
    if isprop( h,'children')
        children = get( h,'children' );
        for n =1: length(children)
            flipColor( children(n) );
        end
    end
    for n=1:numel(h)
        if isprop( h(n), 'color' )
            c = get( h(n),'color' );
            c = 1 - c;
            set( h(n),'color',c );
        end
    end

⌨️ 快捷键说明

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