function fig = trimmod_fig()
% 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.
%
% 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.
load trimmod_fig
h0 = figure('Units','points', ...
'CloseRequestFcn','trimmod exit_trimmod', ...
'Color',[0.8 0.8 0.8], ...
'Colormap',mat0, ...
'MenuBar','none', ...
'Name','Trim Model', ...
'NumberTitle','off', ...
'PointerShapeCData',mat1, ...
'Position',[31.5 27 705 510], ...
'Tag','figure_trimmod');
h1 = uimenu('Parent',h0, ...
'Label','&File', ...
'Tag','file_menue');
h2 = uimenu('Parent',h1, ...
'Callback','trimmod open_model', ...
'Label','&Open Model', ...
'Tag','open_model');
h2 = uimenu('Parent',h1, ...
'Callback','trimmod load_trim_point', ...
'Enable','off', ...
'Label','&Load Trim Point', ...
'Separator','on', ...
'Tag','load_trim_point');
h2 = uimenu('Parent',h1, ...
'Callback','trimmod save_trim_point', ...
'Enable','off', ...
'Label','&Save Trim Point', ...
'Tag','save_trim_point');
h2 = uimenu('Parent',h1, ...
'Callback','trimmod save_trim_point_as', ...
'Enable','off', ...
'Label','Save Trim Point &As', ...
'Tag','save_trim_point_as');
h2 = uimenu('Parent',h1, ...
'Callback','trimmod exit_trimmod', ...
'Label','E&xit TrimMod', ...
'Separator','on', ...
'Tag','exit_trimmod');
h1 = uimenu('Parent',h0, ...
'Label','&Action', ...
'Separator','on', ...
'Tag','action_menue');
h2 = uimenu('Parent',h1, ...
'Callback','trimmod overview', ...
'Enable','off', ...
'Label','&Overview', ...
'Tag','overview');
h2 = uimenu('Parent',h1, ...
'Callback','trimmod trim', ...
'Enable','off', ...
'Label','&Trim', ...
'Separator','on', ...
'Tag','trim');
h2 = uimenu('Parent',h1, ...
'Callback','trimmod untrim', ...
'Enable','off', ...
'Label','&Untrim', ...
'Tag','untrim');
h1 = uimenu('Parent',h0, ...
'Label','&Options', ...
'Tag','options_menue');
h2 = uimenu('Parent',h1, ...
'Callback','trimmod show_tooltips', ...
'Checked','on', ...
'Label','&Show Tooltips', ...
'Tag','show_tooltips', ...
'UserData',mat2);
h2 = uimenu('Parent',h1, ...
'Callback','trimmod additional_parameters', ...
'Enable','off', ...
'Label','&Additional Parameters', ...
'Tag','additional_parameters');
h1 = uimenu('Parent',h0, ...
'Label','&Help', ...
'Tag','help_menue');
h2 = uimenu('Parent',h1, ...
'Callback','trimmod help_on_trimmod', ...
'Label','&Help on TrimMod', ...
'Tag','help_on_trimmod');
h2 = uimenu('Parent',h1, ...
'Callback','trimmod about_trimmod', ...
'Label','&About TrimMod', ...
'Separator','on', ...
'Tag','about_trimmod');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'ListboxTop',0, ...
'Position',[15 15 675 30], ...
'Style','frame', ...
'Tag','Frame2');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
'ListboxTop',0, ...
'Position',[360 285 330 210], ...
'Style','frame', ...
'Tag','Frame1', ...
'TooltipString','Change the properties of state derivatives in this frame');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
'ListboxTop',0, ...
'Position',[15 60 330 210], ...
'Style','frame', ...
'Tag','Frame1', ...
'TooltipString','Change the properties of state variables in this frame');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
'ListboxTop',0, ...
'Position',[360 60 330 210], ...
'Style','frame', ...
'Tag','Frame1', ...
'TooltipString','Change the properties of output variables in this frame');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'Callback','trimmod blockdiagram', ...
'Enable','off', ...
'ListboxTop',0, ...
'Position',[585 75 90 15], ...
'String','Show Blockdiagram', ...
'Tag','output', ...
'TooltipString','Opens the blockdiagram of the selected output variable');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[1 1 1], ...
'Callback','trimmod edit', ...
'Enable','off', ...
'HorizontalAlignment','left', ...
'ListboxTop',0, ...
'Position',[585 217.5 60 15], ...
'String','0', ...
'Style','edit', ...
'Tag','output_value', ...
'TooltipString','Change the value of the selected output variable here and terminate with Enter');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
'HorizontalAlignment','left', ...
'ListboxTop',0, ...
'Position',[585 232.5 30 15], ...
'String','Value:', ...
'Style','text', ...
'Tag','StaticText1', ...
'TooltipString','Change the value of the selected output variable here');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
'Callback','trimmod checkbox', ...
'Enable','off', ...
'HorizontalAlignment','left', ...
'ListboxTop',0, ...
'Position',[585 120 90 15], ...
'String','Trim Requirement', ...
'Style','checkbox', ...
'Tag','output', ...
'TooltipString',mat3);
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[1 1 1], ...
'Callback','trimmod list', ...
'Enable','off', ...
'Position',[375 75.75 195 180], ...
'Style','listbox', ...
'Tag','output', ...
'TooltipString','List of all output variables', ...
'Value',1);
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
'FontSize',10, ...
'ForegroundColor',[0.501960784313725 0 1], ...
'HorizontalAlignment','left', ...
'ListboxTop',0, ...
'Position',[585 247.5 90 15], ...
'String','Output', ...
'Style','text', ...
'Tag','StaticText2', ...
'TooltipString','Change the properties of output variables in this frame');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
'ListboxTop',0, ...
'Position',[15 285 330 210], ...
'Style','frame', ...
'Tag','Frame1', ...
'TooltipString','Change the properties of input variables in this frame');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
'FontSize',10, ...
'ForegroundColor',[1 0 0.501960784313725], ...
'HorizontalAlignment','left', ...
'ListboxTop',0, ...
'Position',[240 472.5 90 15], ...
'String','Input', ...
'Style','text', ...
'Tag','StaticText2', ...
'TooltipString','Change the properties of input variables in this frame');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[1 1 1], ...
'Callback','trimmod list', ...
'Enable','off', ...
'Position',[30 300 195 180], ...
'String',' ', ...
'Style','listbox', ...
'Tag','input', ...
'TooltipString','List of all input variables', ...
'Value',1);
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
'Callback','trimmod checkbox', ...
'Enable','off', ...
'HorizontalAlignment','left', ...
'ListboxTop',0, ...
'Position',[240 345 90 15], ...
'String','Trim Variable', ...
'Style','checkbox', ...
'Tag','input', ...
'TooltipString',mat4);
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
'HorizontalAlignment','left', ...
'ListboxTop',0, ...
'Position',[240 457.5 30 15], ...
'String','Value:', ...
'Style','text', ...
'Tag','StaticText1', ...
'TooltipString','Change the value of the selected input variable here');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[1 1 1], ...
'Callback','trimmod edit', ...
'Enable','off', ...
'HorizontalAlignment','left', ...
'ListboxTop',0, ...
'Position',[240 442.5 60 15], ...
'String','0', ...
'Style','edit', ...
'Tag','input_value', ...
'TooltipString','Change the value of the selected input variable here and terminate with Enter');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'Callback','trimmod blockdiagram', ...
'Enable','off', ...
'ListboxTop',0, ...
'Position',[240 300 90 15], ...
'String','Show Blockdiagram', ...
'Tag','input', ...
'TooltipString','Opens the blockdiagram of the selected input variable');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
'FontSize',10, ...
'ForegroundColor',[1 0 0.501960784313725], ...
'HorizontalAlignment','left', ...
'ListboxTop',0, ...
'Position',[240 247.5 90 15], ...
'String','State', ...
'Style','text', ...
'Tag','StaticText2', ...
'TooltipString','Change the properties of state variables in this frame');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[1 1 1], ...
'Callback','trimmod list', ...
'Enable','off', ...
'Position',[30 75.75 195 180], ...
'Style','listbox', ...
'Tag','state', ...
'TooltipString','List of all state variables', ...
'Value',1);
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
'Callback','trimmod checkbox', ...
'Enable','off', ...
'HorizontalAlignment','left', ...
'ListboxTop',0, ...
'Position',[240 120 90 15], ...
'String','Trim Variable', ...
'Style','checkbox', ...
'Tag','state', ...
'TooltipString',mat5);
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
'HorizontalAlignment','left', ...
'ListboxTop',0, ...
'Position',[240 232.5 30 15], ...
'String','Value:', ...
'Style','text', ...
'Tag','StaticText1', ...
'TooltipString','Change the value of the selected state variable here');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[1 1 1], ...
'Callback','trimmod edit', ...
'Enable','off', ...
'HorizontalAlignment','left', ...
'ListboxTop',0, ...
'Position',[240 217.5 60 15], ...
'String','0', ...
'Style','edit', ...
'Tag','state_value', ...
'TooltipString','Change the value of the selected state variable here and terminate with Enter');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
'HorizontalAlignment','left', ...
'ListboxTop',0, ...
'Position',[240 97.5 30 15], ...
'String','Type:', ...
'Style','text', ...
'Tag','StaticText1', ...
'TooltipString',mat6);
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
'HorizontalAlignment','left', ...
'ListboxTop',0, ...
'Position',[262.5 97.5 60 15], ...
'Style','text', ...
'Tag','state', ...
'TooltipString','Usually you can only trim Integrators and StateSpace, but...');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'Callback','trimmod blockdiagram', ...
'Enable','off', ...
'ListboxTop',0, ...
'Position',[240 75 90 15], ...
'String','Show Blockdiagram', ...
'Tag','state', ...
'TooltipString','Opens the blockdiagram of the selected state variable');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'Callback','trimmod blockdiagram', ...
'Enable','off', ...
'ListboxTop',0, ...
'Position',[585 300 90 15], ...
'String','Show Blockdiagram', ...
'Tag','derivative', ...
'TooltipString','Opens the blockdiagram of the selected state derivative');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
'HorizontalAlignment','left', ...
'ListboxTop',0, ...
'Position',[585 322.5 30 15], ...
'String','Type:', ...
'Style','text', ...
'Tag','StaticText1', ...
'TooltipString',mat7);
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[1 1 1], ...
'Callback','trimmod edit', ...
'Enable','off', ...
'HorizontalAlignment','left', ...
'ListboxTop',0, ...
'Position',[585 442.5 60 15], ...
'String','0', ...
'Style','edit', ...
'Tag','derivative_value', ...
'TooltipString',mat8);
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
'HorizontalAlignment','left', ...
'ListboxTop',0, ...
'Position',[585 457.5 30 15], ...
'String','Value:', ...
'Style','text', ...
'Tag','StaticText1', ...
'TooltipString','Change the value of the selected state derivative here');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
'Callback','trimmod checkbox', ...
'Enable','off', ...
'HorizontalAlignment','left', ...
'ListboxTop',0, ...
'Position',[585 345 90 15], ...
'String','Trim Requirement', ...
'Style','checkbox', ...
'Tag','derivative', ...
'TooltipString',mat9);
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[1 1 1], ...
'Callback','trimmod list', ...
'Enable','off', ...
'Position',[375 303 195 180], ...
'Style','listbox', ...
'Tag','derivative', ...
'TooltipString','List of all state derivatives', ...
'Value',1);
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
'FontSize',10, ...
'ForegroundColor',[0.501960784313725 0 1], ...
'HorizontalAlignment','left', ...
'ListboxTop',0, ...
'Position',[585 472.5 90 15], ...
'String','Derivative', ...
'Style','text', ...
'Tag','StaticText2', ...
'TooltipString','Change the properties of state derivatives in this frame');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
'FontSize',10, ...
'ForegroundColor',[1 0 0.501960784313725], ...
'HorizontalAlignment','left', ...
'ListboxTop',0, ...
'Position',[22.5 22.5 135 15], ...
'String','The number of trim variables:', ...
'Style','text', ...
'Tag','StaticText2');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
'FontSize',10, ...
'ForegroundColor',[1 0 0.501960784313725], ...
'HorizontalAlignment','left', ...
'ListboxTop',0, ...
'Position',[157.5 22.5 30 15], ...
'String','0', ...
'Style','text', ...
'Tag','number of trim variables');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
'FontSize',10, ...
'ForegroundColor',[0 1 0], ...
'ListboxTop',0, ...
'Position',[300 22.5 105 15], ...
'String','equals', ...
'Style','text', ...
'Tag','relation');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
'FontSize',10, ...
'ForegroundColor',[0.501960784313725 0 1], ...
'HorizontalAlignment','left', ...
'ListboxTop',0, ...
'Position',[502.5 22.5 150 15], ...
'String','the number of trim requirements:', ...
'Style','text', ...
'Tag','input');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
'FontSize',10, ...
'ForegroundColor',[0.501960784313725 0 1], ...
'HorizontalAlignment','left', ...
'ListboxTop',0, ...
'Position',[652.5 22.5 30 15], ...
'String','0', ...
'Style','text', ...
'Tag','number of trim requirements');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
'HorizontalAlignment','left', ...
'ListboxTop',0, ...
'Position',[607.5 322.5 60 15], ...
'Style','text', ...
'Tag','derivative', ...
'TooltipString','Usually you can only trim Integrators and StateSpace, but...');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'ListboxTop',0, ...
'Position',[307.5 367.5 30 90], ...
'String','Enter', ...
'Tag','input', ...
'TooltipString','Terminate the input of a new value with Enter (via this button or via keyboard)');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'ListboxTop',0, ...
'Position',[652.5 442.5 30 15], ...
'String','Enter', ...
'Tag','input', ...
'TooltipString','Terminate the input of a new value with Enter (via this button or via keyboard)');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'ListboxTop',0, ...
'Position',[652.5 217.5 30 15], ...
'String','Enter', ...
'Tag','input', ...
'TooltipString','Terminate the input of a new value with Enter (via this button or via keyboard)');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[1 1 1], ...
'Callback','trimmod edit', ...
'Enable','off', ...
'HorizontalAlignment','left', ...
'ListboxTop',0, ...
'Position',[240 405 60 15], ...
'String','0', ...
'Style','edit', ...
'Tag','input_trim', ...
'TooltipString',mat10);
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
'HorizontalAlignment','left', ...
'ListboxTop',0, ...
'Position',[240 420 55.5 15], ...
'String','Max. Trim Step:', ...
'Style','text', ...
'Tag','trim', ...
'TooltipString',mat11);
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[1 1 1], ...
'Callback','trimmod edit', ...
'Enable','off', ...
'HorizontalAlignment','left', ...
'ListboxTop',0, ...
'Position',[240 367.5 60 15], ...
'String','0', ...
'Style','edit', ...
'Tag','input_lin', ...
'TooltipString',mat12);
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
'HorizontalAlignment','left', ...
'ListboxTop',0, ...
'Position',[240 382.5 52.5 15], ...
'String','Linear. Step:', ...
'Style','text', ...
'Tag','lin', ...
'TooltipString',mat13);
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[1 1 1], ...
'Callback','trimmod edit', ...
'Enable','off', ...
'HorizontalAlignment','left', ...
'ListboxTop',0, ...
'Position',[240 180 60 15], ...
'String','0', ...
'Style','edit', ...
'Tag','state_trim', ...
'TooltipString',mat14);
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[1 1 1], ...
'Callback','trimmod edit', ...
'Enable','off', ...
'HorizontalAlignment','left', ...
'ListboxTop',0, ...
'Position',[240 142.5 60 15], ...
'String','0', ...
'Style','edit', ...
'Tag','state_lin', ...
'TooltipString',mat15);
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'ListboxTop',0, ...
'Position',[307.5 142.5 30 90], ...
'String','Enter', ...
'Tag','Pushbutton1', ...
'TooltipString','Terminate the input of a new value with Enter (via this button or via keyboard)');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
'HorizontalAlignment','left', ...
'ListboxTop',0, ...
'Position',[240 195 55.5 15], ...
'String','Max. Trim Step:', ...
'Style','text', ...
'Tag','trim', ...
'TooltipString',mat16);
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
'HorizontalAlignment','left', ...
'ListboxTop',0, ...
'Position',[240 157.5 52.5 15], ...
'String','Linear. Step:', ...
'Style','text', ...
'Tag','lin', ...
'TooltipString',mat17);
if nargout > 0, fig = h0; end