• <noscript id="ecgc0"><kbd id="ecgc0"></kbd></noscript>
    <menu id="ecgc0"></menu>
  • <tt id="ecgc0"></tt>

    在matlab中為什么某些組件丟失或部分被遮擋

    學習和分享。

    東西/原料

    • matlab軟件
    • 電腦

    方式/步調

    1. 1

      恢復編程結構

      此代碼建立一個圖形,其頂部面板包含一個軸,底部面板包含一個按鈕和彈出菜單。

      hf = figure; 

    2. 2

      hb = uicontrol('Style','PushButton',...              

             'String','Plot',...              

             'Position',[175, 40, 60, 25]); 

    3. 3

      hpulabel = uicontrol('Style','text',...                     

             'String', 'Plot Type',...                     

             'Position', [300, 65, 60, 20]); 

    4. 4

      hpu = uicontrol('Style', 'popupmenu',...                

             'String', {'bar', 'plot', 'stem'},...               

             'Position',[310, 40, 60, 25]); 

    5. 5

      topp = uipanel('Title', 'Plot',...               

             'Position',[0 .25 1 .75]);

    6. 6

      ah = axes('Position', [.10, .35 .80 .60]); 

    7. 7

      bottomp = uipanel('Title','Plotting Options',...                  

             'Position',[0 0 1 .25]);

      END

    方式/步調2

    1. 1

      hf = figure;

    2. 2

      topph = uipanel('Parent', hf,'Title', 'Plot',...

                      'Position',[0 .25 1 .75]);

    3. 3

      axes('Parent', topph, 'Position', [.10, .35 .80 .60]);

    4. 4

      bottomph = uipanel('Parent', hf,'Title','Plotting Options',...

                         'Position',[0 0 1 .25])

    5. 5

      hpulabel = uicontrol('Parent', bottomph, 'Style','text',...

                           'String', 'Plot Type',...

                           'Position', [300, 65, 60, 20]);

    6. 6

      hb = uicontrol('Parent', bottomph, 'Style','PushButton',...

                     'String','Plot',...

                     'Position',[175, 40, 60, 25]);

    7. 7

      hpu = uicontrol('Parent', bottomph, 'Style', 'popupmenu',...

                      'String', {'bar', 'plot', 'stem'},...

                      'Position',[310, 40, 60, 25]);

      END
    • 發表于 2020-03-08 20:55
    • 閱讀 ( 900 )
    • 分類:其他類型

    0 條評論

    請先 登錄 后評論
    聯系我們:uytrv@hotmail.com 問答工具
  • <noscript id="ecgc0"><kbd id="ecgc0"></kbd></noscript>
    <menu id="ecgc0"></menu>
  • <tt id="ecgc0"></tt>
    久久久久精品国产麻豆