• 底层代码创建GUI


     1 %底层代码创建GUI
     2 
     3 hf = figure(...
     4     'Units','Normalized',...
     5     'Color','w',...
     6     'Position',[0.1 0.1 0.8 0.8]);
     7 
     8 ha=axes(...
     9     'Parent',hf,...
    10     'Units','Normalized',...
    11     'Position',[0.1 0.1 0.6 0.8],...
    12     'NextPlot','Add');
    13 
    14 hb1=uicontrol(...
    15     'Style','pushbutton',...
    16     'Callback','str,delete(cllchild(ha));end',...
    17     'String','clear',...
    18     'Units','Normalized',...
    19     'Position',[0.8 0.2 0.2 0.15]);
    20 
    21 hb2=uicontrol(...
    22     'Style','pushbutton',...
    23     'Callback','plot(sin([0:0.01:10]))',...
    24     'String','sin',...
    25     'Units','Normalized',...
    26     'Position',[0.8 0.4 0.2 0.15]);
    27 
    28 hb3=uicontrol(...
    29     'Style','pushbutton',...
    30     'Callback','plot(cos([0:0.01:10]))',...
    31     'String','cos',...
    32     'Units','Normalized',...
    33     'Position',[0.8 0.6 0.2 0.15]);

  • 相关阅读:
    [转]initrd.img, vmlinux
    [转]关于arm 上kernel, qemu起VM等
    [转]overlayFS
    [转]virtiofs
    [转] dynamic DMA mapping
    [转] cpu亲和性
    [转] /dev/shm
    huginn,n8n,ifttt
    ipfs---protocol, filesystem,web p2p,cdn
    gpg,pgp--
  • 原文地址:https://www.cnblogs.com/wydxry/p/8067233.html
Copyright © 2020-2023  润新知