MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE Especificações Página 161

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 180
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 160
A GUI to Set Simulink Model Parameters
5-37
PlotData{ctVal*3} = plotColor{numColor};
legendStr{ctVal} = [handles.ResultsData(currentVal(ctVal)).RunName,...
'; Kf=', ...
num2str(handles.ResultsData(currentVal(ctVal)).KfValue),...
'; Ki=', ...
num2str(handles.ResultsData(currentVal(ctVal)).KiValue)];
end
% If necessary, create the plot figure and store in handles structure
if ~isfield(handles,'PlotFigure') | ~ishandle(handles.PlotFigure),
handles.PlotFigure = figure('Name','F14 Simulation Output',...
'Visible','off','NumberTitle','off',...
'HandleVisibility','off','IntegerHandle','off');
handles.PlotAxes = axes('Parent',handles.PlotFigure);
guidata(h,handles)
end
% Plot data
pHandles = plot(PlotData{:},'Parent',handles.PlotAxes);
% Add a legend, and bring figure to the front
legend(pHandles(1:2:end),legendStr{:})
% Make the figure visible and bring it forward
figure(handles.PlotFigure)
The GUI Help Button
The GUI Help button callback displays an HTML file in the MATLAB help
browser. It uses two commands:
The
which command returns the full path to the file when it is on the
MATLAB path
The
web command displays the file in the Help browser.
This is the
Help button callback.
function varargout = HelpButton_Callback(h,eventdata,handles,varargin)
HelpPath = which('f14ex_help.html');
web(HelpPath);
You can also display the help document in a Web browser or load an external
URL. See the
web documentation for a description of these options.
Vista de página 160
1 2 ... 156 157 158 159 160 161 162 163 164 165 166 ... 179 180

Comentários a estes Manuais

Sem comentários