Files
senior-design/strut/strutfit 2.m
2010-04-17 12:00:00 -05:00

209 lines
7.5 KiB
Matlab
Executable File

function fig = strut()
% 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 strut
h0 = figure('Color',[0.8 0.8 0.8], ...
'Colormap',mat0, ...
'FileName','strutfit.m', ...
'MenuBar','none', ...
'PaperPosition',[18 180 576 432], ...
'PaperUnits','points', ...
'Position',[392 219 560 420], ...
'Tag','Fig1', ...
'ToolBar','none', ...
'NumberTitle','off', ...
'Name','Strutfit');
h1 = uimenu('Parent',h0, ...
'Label','Help', ...
'Tag','uimenu1');
h2 = uimenu('Parent',h1, ...
'Callback','edit readme.txt', ...
'Label','Readme', ...
'Tag','Helpuimenu1');
h2 = uimenu('Parent',h1, ...
'Callback','edit about.txt', ...
'Label','About Strutfit', ...
'Tag','Aboutuimenu1');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
'Callback','strutcall load', ...
'ListboxTop',0, ...
'Position',[356.25 289.5 50.25 15.75], ...
'String','Load Airfoil', ...
'Tag','Pushbutton1');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
'ListboxTop',0, ...
'Position',[341.25 248.25 40 11], ...
'String','Strut Size:', ...
'Style','text', ...
'Tag','StaticText1');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
'ListboxTop',0, ...
'Position',[341.25 228.75 30 11.25], ...
'String','Width', ...
'Style','text', ...
'Tag','StaticText1');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
'ListboxTop',0, ...
'Position',[341.25 208.625 30 11], ...
'String','Length', ...
'Style','text', ...
'Tag','StaticText1');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[1 1 1], ...
'ListboxTop',0, ...
'Position',[377.25 226.5 39.75 15.75], ...
'String','0', ...
'Style','edit', ...
'Tag','width');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[1 1 1], ...
'ListboxTop',0, ...
'Position',[377.25 206.25 39.75 15.75], ...
'String','0', ...
'Style','edit', ...
'Tag','length');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
'Callback','strutcall calculate', ...
'ListboxTop',0, ...
'Position',[356.25 177 50.25 15.75], ...
'String','Calculate', ...
'Tag','Pushbutton1');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'ListboxTop',0, ...
'Position',[347.25 133.5 30 11.25], ...
'String','Scale', ...
'Style','text', ...
'Tag','StaticText2');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
'ListboxTop',0, ...
'Position',[347.25 88.875 30 11.25], ...
'String','Xle (%)', ...
'Style','text', ...
'Tag','StaticText2');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
'ListboxTop',0, ...
'Position',[347.25 44.25 30 11.25], ...
'String','Xle', ...
'Style','text', ...
'Tag','StaticText2');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[1 1 1], ...
'Enable','off', ...
'ListboxTop',0, ...
'Position',[354.75 114 50.25 15.75], ...
'String','0', ...
'Style','edit', ...
'Tag','scale');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[1 1 1], ...
'Enable','off', ...
'ListboxTop',0, ...
'Position',[354.75 69.375 50.25 15.75], ...
'String','0', ...
'Style','edit', ...
'Tag','xlepers');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[1 1 1], ...
'Enable','off', ...
'ListboxTop',0, ...
'Position',[354.75 24.75 50.25 15.75], ...
'String','0', ...
'Style','edit', ...
'Tag','xle');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
'ListboxTop',0, ...
'Position',[341.25 152.25 40 12], ...
'String','Results:', ...
'Style','text', ...
'Tag','StaticText3');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[1 1 1], ...
'Enable','off', ...
'ListboxTop',0, ...
'Position',[347.25 264.75 66 15.75], ...
'String','None Selected', ...
'Style','edit', ...
'Tag','airfoilname');
h1 = axes('Parent',h0, ...
'Units','pixels', ...
'CameraUpVector',[0 1 0], ...
'CameraUpVectorMode','manual', ...
'Color',[1 1 1], ...
'ColorOrder',mat1, ...
'Position',[34 27 418 386], ...
'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.4988009592326139 -0.06233766233766236 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.06954436450839328 0.4961038961038962 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.0815347721822542 1.018181818181818 9.160254037844386], ...
'Tag','Axes1Text2', ...
'Visible','off');
set(get(h2,'Parent'),'ZLabel',h2);
h2 = text('Parent',h1, ...
'Color',[0 0 0], ...
'HandleVisibility','off', ...
'HorizontalAlignment','center', ...
'Position',[0.4988009592326139 1.018181818181818 9.160254037844386], ...
'Tag','Axes1Text1', ...
'VerticalAlignment','bottom');
set(get(h2,'Parent'),'Title',h2);
if nargout > 0, fig = h0; end