MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE Manual de usuario Pagina 312

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 500
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 311
9 Examples of GUIDE UIs
9-66
'; 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(hObject, 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 Help Button
The 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 HelpButton_Callback(hObject, eventdata, handles)
HelpPath = which('f14ex_help.html');
web(HelpPath);
You can also display the help document in a Web browser or load an external URL. For a
description of these options, see the documentation for the web function.
Close the UI
The Close button callback closes the plot figure, if one exists and then closes the UI
window. The plot figure and the UI window are available from the handles structure.
The callback executes two steps:
Checks to see if there is a PlotFigure field in the handles structure and if it
contains a valid figure handle (you could have closed the figure manually).
Vista de pagina 311
1 2 ... 307 308 309 310 311 312 313 314 315 316 317 ... 499 500

Comentarios a estos manuales

Sin comentarios