📄 topgui.m
字号:
'Name','TopGUI V1.0',...
'NumberTitle','off',...
'PaperPosition',[0.0119243429653489 0.0842781102631165 0.381578974891164 0.20226746463148],...
'PaperSize',[1 1],...
'PaperType',get(0,'defaultfigurePaperType'),...
'Position',[0.048828125 0.0846354166666667 0.88671875 0.838541666666667],...
'Renderer',get(0,'defaultfigureRenderer'),...
'RendererMode','manual',...
'WindowButtonDownFcn','topgui(''figure1_WindowButtonDownFcn'',gcbo,[],guidata(gcbo))',...
'HandleVisibility','callback',...
'Interruptible','off',...
'Tag','figure1',...
'UserData',zeros(1,0));
setappdata(h1, 'GUIDEOptions', struct(...
'active_h', 1.650060e+002, ...
'taginfo', struct(...
'figure', 2, ...
'axes', 2, ...
'text', 52, ...
'pushbutton', 11, ...
'togglebutton', 4, ...
'popupmenu', 4, ...
'frame', 8, ...
'checkbox', 2, ...
'edit', 2), ...
'override', 0, ...
'release', 13, ...
'resize', 'none', ...
'accessibility', 'callback', ...
'mfile', 1, ...
'callbacks', 1, ...
'singleton', 1, ...
'syscolorfig', 1, ...
'lastSavedFile', 'D:\program\matlab\work\vtop\gui.m'));
h2 = axes(...
'Parent',h1,...
'CameraPosition',[0.5 0.5 9.16025403784439],...
'CameraPositionMode',get(0,'defaultaxesCameraPositionMode'),...
'Color',get(0,'defaultaxesColor'),...
'ColorOrder',get(0,'defaultaxesColorOrder'),...
'NextPlot','add',...
'Position',[0.0253303964757709 0.279503105590062 0.814977973568283 0.687888198757764],...
'XColor',get(0,'defaultaxesXColor'),...
'XAxisLocation','top',...
'YColor',get(0,'defaultaxesYColor'),...
'YDir','reverse',...
'ZColor',get(0,'defaultaxesZColor'),...
'Tag','axes1');
h3 = get(h2,'title');
set(h3,...
'Parent',h2,...
'Color',[0 0 0],...
'HorizontalAlignment','center',...
'Position',[0.499324324324324 -0.0620767494356658 1.00005459937205],...
'VerticalAlignment','bottom',...
'HandleVisibility','off');
h4 = get(h2,'xlabel');
set(h4,...
'Parent',h2,...
'Color',[0 0 0],...
'HorizontalAlignment','center',...
'Position',[0.499324324324324 -0.0485327313769752 1.00005459937205],...
'VerticalAlignment','bottom',...
'HandleVisibility','off');
h5 = get(h2,'ylabel');
set(h5,...
'Parent',h2,...
'Color',[0 0 0],...
'HorizontalAlignment','center',...
'Position',[-0.0385135135135135 0.502257336343115 1.00005459937205],...
'Rotation',90,...
'VerticalAlignment','bottom',...
'HandleVisibility','off');
h6 = get(h2,'zlabel');
set(h6,...
'Parent',h2,...
'Color',[0 0 0],...
'HorizontalAlignment','right',...
'Position',[-0.0317567567567568 -0.0440180586907448 1.00005459937205],...
'HandleVisibility','off',...
'Visible','off');
h7 = uicontrol(...
'Parent',h1,...
'Units','normalized',...
'FontUnits','normalized',...
'BackgroundColor',[0 0.501960784313725 0.752941176470588],...
'FontSize',0.0867208672086721,...
'ListboxTop',0,...
'Position',[0.00770925110132159 0.0698757763975155 0.302863436123348 0.177018633540373],...
'String',{ '' },...
'Style','frame',...
'Tag','frame2');
h8 = uicontrol(...
'Parent',h1,...
'Units','normalized',...
'FontUnits','normalized',...
'BackgroundColor',[0 0 0.627450980392157],...
'FontSize',0.55,...
'FontWeight','bold',...
'ForegroundColor',[1 1 1],...
'ListboxTop',0,...
'Position',[0.0198237885462555 0.226708074534161 0.131057268722467 0.0326086956521739],...
'String','Selecting Nodes',...
'Style','text',...
'Tag','text1');
h9 = uicontrol(...
'Parent',h1,...
'Units','normalized',...
'FontUnits','normalized',...
'BackgroundColor',[0 0.250980392156863 0.250980392156863],...
'Callback','topgui(''pushbutton_selNodes_inp_Callback'',gcbo,[],guidata(gcbo))',...
'FontSize',0.5,...
'FontWeight','bold',...
'ForegroundColor',[0.752941176470588 0.752941176470588 0.752941176470588],...
'ListboxTop',0,...
'Max',3,...
'Position',[0.168502202643172 0.0978260869565217 0.0594713656387665 0.0372670807453416],...
'String','Input',...
'TooltipString','Input nodes index in Matlab vector format.',...
'Tag','pushbutton_selNodes_inp');
h10 = uicontrol(...
'Parent',h1,...
'Units','normalized',...
'FontUnits','normalized',...
'BackgroundColor',[0.501960784313725 0 0.250980392156863],...
'Callback','topgui(''pushbutton_SelNodes_pick_Callback'',gcbo,[],guidata(gcbo))',...
'FontSize',0.5,...
'FontWeight','bold',...
'ForegroundColor',[0.752941176470588 0.752941176470588 0.752941176470588],...
'ListboxTop',0,...
'Position',[0.241189427312775 0.0978260869565217 0.0594713656387665 0.0372670807453416],...
'String','Pick',...
'TooltipString','Pick nodes by mouse in GUI.',...
'Tag','pushbutton_SelNodes_pick');
h11 = uicontrol(...
'Parent',h1,...
'Units','normalized',...
'FontUnits','normalized',...
'BackgroundColor',[1 1 1],...
'FontSize',0.592592592592593,...
'ListboxTop',0,...
'Position',[0.168502202643172 0.156832298136646 0.0759911894273128 0.0357142857142857],...
'String',{ 'New' 'Add' },...
'Style','popupmenu',...
'TooltipString','New - starting a new selection. Add - Adding nodes to previous selection.',...
'Value',1,...
'CreateFcn','topgui(''popupmenu_select_type_CreateFcn'',gcbo,[],guidata(gcbo))',...
'Tag','popupmenu_select_type');
h12 = uicontrol(...
'Parent',h1,...
'Units','normalized',...
'BackgroundColor',[0 0.501960784313725 0.752941176470588],...
'ListboxTop',0,...
'Position',[0.843612334801763 0.708074534161491 0.14647577092511 0.236024844720497],...
'String',{ '' },...
'Style','frame',...
'Tag','frame3');
h13 = uicontrol(...
'Parent',h1,...
'Units','normalized',...
'FontUnits','normalized',...
'BackgroundColor',[0 0 0.627450980392157],...
'CData',zeros(1,0),...
'FontSize',0.6,...
'FontWeight','bold',...
'ForegroundColor',[0.501960784313725 1 0],...
'ListboxTop',0,...
'Position',[0.866740088105728 0.933229813664596 0.105726872246696 0.0279503105590062],...
'String','Current position',...
'Style','text',...
'Tag','text8',...
'UserData',zeros(1,0));
h14 = uicontrol(...
'Parent',h1,...
'Units','normalized',...
'BackgroundColor',[0 0.501960784313725 0.752941176470588],...
'ListboxTop',0,...
'Position',[0.844713656387665 0.321428571428571 0.143171806167401 0.341614906832298],...
'String',{ '' },...
'Style','frame',...
'Tag','frame4');
h15 = uicontrol(...
'Parent',h1,...
'Units','normalized',...
'FontUnits','normalized',...
'BackgroundColor',[0 0 0.627450980392157],...
'CData',zeros(1,0),...
'FontSize',0.7,...
'FontWeight','bold',...
'ForegroundColor',[0.501960784313725 1 0],...
'ListboxTop',0,...
'Position',[0.857929515418502 0.650621118012422 0.0991189427312775 0.0279503105590062],...
'String','Summary',...
'Style','text',...
'Tag','text9',...
'UserData',zeros(1,0));
h16 = uicontrol(...
'Parent',h1,...
'Units','normalized',...
'FontUnits','normalized',...
'BackgroundColor',[0 0.501960784313725 0.752941176470588],...
'FontSize',0.5,...
'FontWeight','bold',...
'ForegroundColor',[1 1 1],...
'HorizontalAlignment','left',...
'ListboxTop',0,...
'Position',[0.852422907488987 0.897515527950311 0.0506607929515419 0.0326086956521739],...
'String','Node :',...
'Style','text',...
'Tag','text10');
h17 = uicontrol(...
'Parent',h1,...
'Units','normalized',...
'FontUnits','normalized',...
'BackgroundColor',[0 0.501960784313725 0.752941176470588],...
'FontSize',0.6,...
'FontWeight','bold',...
'ForegroundColor',[1 1 1],...
'ListboxTop',0,...
'Position',[0.851321585903084 0.87111801242236 0.0374449339207049 0.0279503105590062],...
'String','x = ',...
'Style','text',...
'Tag','text11');
h18 = uicontrol(...
'Parent',h1,...
'Units','normalized',...
'FontUnits','normalized',...
'BackgroundColor',[0 0.501960784313725 0.752941176470588],...
'FontSize',0.6,...
'FontWeight','bold',...
'ForegroundColor',[1 1 1],...
'ListboxTop',0,...
'Position',[0.851321585903084 0.843167701863354 0.0374449339207049 0.0279503105590062],...
'String','y = ',...
'Style','text',...
'Tag','text12');
h19 = uicontrol(...
'Parent',h1,...
'Units','normalized',...
'FontUnits','normalized',...
'BackgroundColor',[0 0.501960784313725 0.752941176470588],...
'FontSize',0.6,...
'ForegroundColor',[1 1 0],...
'ListboxTop',0,...
'Position',[0.879955947136565 0.87111801242236 0.0330396475770925 0.0279503105590062],...
'String','1',...
'Style','text',...
'Interruptible','off',...
'Tag','text_node_x');
h20 = uicontrol(...
'Parent',h1,...
'Units','normalized',...
'FontUnits','normalized',...
'BackgroundColor',[0 0.501960784313725 0.752941176470588],...
'FontSize',0.507936507936508,...
'ForegroundColor',[1 1 1],...
'HorizontalAlignment','left',...
'ListboxTop',0,...
'Position',[0.920704845814978 0.869565217391304 0.0605726872246696 0.0326086956521739],...
'String','(1:nelx+1)',...
'Style','text',...
'Tag','text_lim_x');
h21 = uicontrol(...
'Parent',h1,...
'Units','normalized',...
'FontUnits','normalized',...
'BackgroundColor',[0 0.501960784313725 0.752941176470588],...
'FontSize',0.6,...
'ForegroundColor',[1 1 0],...
'ListboxTop',0,...
'Position',[0.879955947136565 0.840062111801242 0.0319383259911894 0.0279503105590062],...
'String','1',...
'Style','text',...
'Interruptible','off',...
'Tag','text_node_y');
h22 = uicontrol(...
'Parent',h1,...
'Units','normalized',...
'FontUnits','normalized',...
'BackgroundColor',[0 0.501960784313725 0.752941176470588],...
'FontSize',0.627450980392157,...
'ForegroundColor',[1 1 1],...
'HorizontalAlignment','left',...
'ListboxTop',0,...
'Position',[0.920704845814978 0.841614906832298 0.0594713656387665 0.0263975155279503],...
'String','(1:nely+1)',...
'Style','text',...
'Tag','text_lim_y');
h23 = uicontrol(...
'Parent',h1,...
'Units','normalized',...
'FontUnits','normalized',...
'BackgroundColor',[0 0.501960784313725 0.752941176470588],...
'FontSize',0.5,...
'FontWeight','bold',...
'ForegroundColor',[1 1 1],...
'HorizontalAlignment','left',...
'ListboxTop',0,...
'Position',[0.852422907488987 0.793478260869565 0.0859030837004405 0.0372670807453416],...
'String','Element :',...
'Style','text',...
'Tag','text17');
h24 = uicontrol(...
'Parent',h1,...
'Units','normalized',...
'FontUnits','normalized',...
'BackgroundColor',[0 0.501960784313725 0.752941176470588],...
'FontSize',0.6,...
'FontWeight','bold',...
'ForegroundColor',[1 1 1],...
'ListboxTop',0,...
'Position',[0.855726872246696 0.763975155279503 0.0341409691629956 0.0326086956521739],...
'String','i = ',...
'Style','text',...
'Tag','text18');
h25 = uicontrol(...
'Parent',h1,...
'Units','normalized',...
'FontUnits','normalized',...
'BackgroundColor',[0 0.501960784313725 0.752941176470588],...
'FontSize',0.6,...
'FontWeight','bold',...
'ForegroundColor',[1 1 1],...
'ListboxTop',0,...
'Position',[0.8568281938326 0.722049689440994 0.0330396475770925 0.0357142857142857],...
'String','j = ',...
'Style','text',...
'Tag','text20');
h26 = uicontrol(...
'Parent',h1,...
'Units','normalized',...
'FontUnits','normalized',...
'BackgroundColor',[0 0.501960784313725 0.752941176470588],...
'FontSize',0.6,...
'ForegroundColor',[1 1 0],...
'ListboxTop',0,...
'Position',[0.879955947136564 0.763975155279503 0.0319383259911894 0.0279503105590062],...
'String','1',...
'Style','text',...
'Interruptible','off',...
'Tag','text_elem_i');
h27 = uicontrol(...
'Parent',h1,...
'Units','normalized',...
'FontUnits','normalized',...
'BackgroundColor',[0 0.501960784313725 0.752941176470588],...
'FontSize',0.6,...
'ForegroundColor',[1 1 0],...
'ListboxTop',0,...
'Position',[0.879955947136564 0.728260869565217 0.0319383259911894 0.0279503105590062],...
'String','1',...
'Style','text',...
'Interruptible','off',...
'Tag','text_elem_j');
h28 = uicontrol(...
'Parent',h1,...
'Units','normalized',...
'FontUnits','normalized',...
'BackgroundColor',[0 0.501960784313725 0.752941176470588],...
'CData',zeros(1,0),...
'FontSize',0.711111111111111,...
'ForegroundColor',[1 1 1],...
'HorizontalAlignment','left',...
'ListboxTop',0,...
'Position',[0.920704845814978 0.770186335403727 0.0605726872246696 0.0232919254658385],...
'String','(1:nelx)',...
'Style','text',...
'Tag','text_lim_i',...
'UserData',zeros(1,0));
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -