rcs_cylinder_gui.m
上传用户:szahd2008
上传日期:2020-09-25
资源大小:1275k
文件大小:4k
- function fig = rcs_cylinder_driver()
- % This is the machine-generated representation of a Handle Graphics object
- % and its children. Note that handle values may change when these objects
- % are re-created. This may cause problems with any callbacks written to
- % depend on the value of the handle at the time the object was saved.
- % This problem is solved by saving the output as a FIG-file.
- %
- % To reopen this object, just type the name of the M-file at the MATLAB
- % prompt. The M-file and its associated MAT-file must be on your path.
- %
- % NOTE: certain newer features in MATLAB may not have been saved in this
- % M-file due to limitations of this format, which has been superseded by
- % FIG-files. Figures which have been annotated using the plot editor tools
- % are incompatible with the M-file/MAT-file format, and should be saved as
- % FIG-files.
- load rcs_cylinder_driver
- h0 = figure('Color',[0.8 0.8 0.8], ...
- 'Colormap',mat0, ...
- 'FileName','C:RSAchap2programsrcs_cylinder_driver.m', ...
- 'PaperPosition',[18 180 576 432], ...
- 'PaperUnits','points', ...
- 'Position',[541 356 560 458], ...
- 'Tag','Fig1', ...
- 'ToolBar','none');
- h1 = axes('Parent',h0, ...
- 'Units','pixels', ...
- 'CameraUpVector',[0 1 0], ...
- 'Color',[1 1 1], ...
- 'ColorOrder',mat1, ...
- 'Position',[51 150 401 277], ...
- 'Tag','Axes1', ...
- 'XColor',[0 0 0], ...
- 'YColor',[0 0 0], ...
- 'ZColor',[0 0 0]);
- h2 = text('Parent',h1, ...
- 'Color',[0 0 0], ...
- 'HandleVisibility','off', ...
- 'HorizontalAlignment','center', ...
- 'Position',[0.4975000000000001 -0.08695652173913038 9.160254037844386], ...
- 'Tag','Axes1Text4', ...
- 'VerticalAlignment','cap');
- set(get(h2,'Parent'),'XLabel',h2);
- h2 = text('Parent',h1, ...
- 'Color',[0 0 0], ...
- 'HandleVisibility','off', ...
- 'HorizontalAlignment','center', ...
- 'Position',[-0.07250000000000001 0.4963768115942029 9.160254037844386], ...
- 'Rotation',90, ...
- 'Tag','Axes1Text3', ...
- 'VerticalAlignment','baseline');
- set(get(h2,'Parent'),'YLabel',h2);
- h2 = text('Parent',h1, ...
- 'Color',[0 0 0], ...
- 'HandleVisibility','off', ...
- 'HorizontalAlignment','right', ...
- 'Position',[-0.1275 1.11231884057971 9.160254037844386], ...
- 'Tag','Axes1Text2');
- set(get(h2,'Parent'),'ZLabel',h2);
- h2 = text('Parent',h1, ...
- 'Color',[0 0 0], ...
- 'HandleVisibility','off', ...
- 'HorizontalAlignment','center', ...
- 'Position',mat2, ...
- 'Tag','Axes1Text1', ...
- 'VerticalAlignment','bottom');
- set(get(h2,'Parent'),'Title',h2);
- h1 = uicontrol('Parent',h0, ...
- 'Units','points', ...
- 'Callback','[rcs] = rcs_cylinder (r, h, freq);', ...
- 'ListboxTop',0, ...
- 'Position',[375.75 279.75 36.75 19.5], ...
- 'String','Go', ...
- 'Tag','Pushbutton1');
- h1 = uicontrol('Parent',h0, ...
- 'Units','points', ...
- 'Callback','close all', ...
- 'ListboxTop',0, ...
- 'Position',[375.75 245.25 36.75 19.5], ...
- 'String','Quit', ...
- 'Tag','Pushbutton1');
- h1 = uicontrol('Parent',h0, ...
- 'Units','points', ...
- 'ListboxTop',0, ...
- 'Position',[38.25 57 112.5 18], ...
- 'String','frequency - Hz', ...
- 'Tag','Pushbutton2');
- h1 = uicontrol('Parent',h0, ...
- 'Units','points', ...
- 'BackgroundColor',[1 1 1], ...
- 'Callback',mat3, ...
- 'ListboxTop',0, ...
- 'Position',[151.5 57 54.75 18], ...
- 'Style','edit', ...
- 'Tag','EditText1');
- h1 = uicontrol('Parent',h0, ...
- 'Units','points', ...
- 'BackgroundColor',[1 1 1], ...
- 'Callback',mat4, ...
- 'ListboxTop',0, ...
- 'Position',[354.75 55.5 54.75 18], ...
- 'Style','edit', ...
- 'Tag','EditText1');
- h1 = uicontrol('Parent',h0, ...
- 'Units','points', ...
- 'ListboxTop',0, ...
- 'Position',[241.5 55.5 112.5 18], ...
- 'String','cylinder length - m', ...
- 'Tag','Pushbutton2');
- h1 = uicontrol('Parent',h0, ...
- 'Units','points', ...
- 'BackgroundColor',[1 1 1], ...
- 'Callback',mat5, ...
- 'ListboxTop',0, ...
- 'Position',[246 21 54.75 18], ...
- 'Style','edit', ...
- 'Tag','EditText1');
- h1 = uicontrol('Parent',h0, ...
- 'Units','points', ...
- 'ListboxTop',0, ...
- 'Position',[132.75 21 112.5 18], ...
- 'String','cylinder radius - m', ...
- 'Tag','Pushbutton2');
- if nargout > 0, fig = h0; end