Code covered by the BSD License  

Highlights from
trimmod

from trimmod by Joerg Buchholz
TrimMod finds the trim point (equilibrium) of a Simulink system.

parameters_fig()
function fig = parameters_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 parameters_fig

h0 = figure('Units','points', ...
	'CloseRequestFcn','trimmod exit_parameters', ...
	'Color',[0.8 0.8 0.8], ...
	'Colormap',mat0, ...
	'MenuBar','none', ...
	'Name','Parameters', ...
	'NumberTitle','off', ...
	'PointerShapeCData',mat1, ...
	'Position',[417.75 178.5 149.25 168.75], ...
	'Tag','parameters_fig');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[1 1 1], ...
	'Callback','trimmod parameter_edit', ...
	'HorizontalAlignment','left', ...
	'ListboxTop',0, ...
	'Position',[18.75 112.5 112.5 18.75], ...
	'String','42', ...
	'Style','edit', ...
	'Tag','max_iterations');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.8 0.8 0.8], ...
	'HorizontalAlignment','left', ...
	'ListboxTop',0, ...
	'Position',[18.75 131.25 112.5 18.75], ...
	'String','Maximum Number of Iterations:', ...
	'Style','text', ...
	'Tag','StaticText1');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.8 0.8 0.8], ...
	'HorizontalAlignment','left', ...
	'ListboxTop',0, ...
	'Position',[18.75 75 112.5 18.75], ...
	'String','Cost Value to be Gained:', ...
	'Style','text', ...
	'Tag','StaticText1');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[1 1 1], ...
	'Callback','trimmod parameter_edit', ...
	'HorizontalAlignment','left', ...
	'ListboxTop',0, ...
	'Position',[18.75 56.25 112.5 18.75], ...
	'String','1e-009', ...
	'Style','edit', ...
	'Tag','cost_value');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'Callback','trimmod exit_parameters', ...
	'ListboxTop',0, ...
	'Position',[56.25 18.75 37.5 18.75], ...
	'String','OK', ...
	'Tag','Pushbutton1');
if nargout > 0, fig = h0; end

Contact us at files@mathworks.com