MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE Bedienungsanleitung Seite 243

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 330
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 242
Accessing Workspace Variables from a List Box
10-19
Callbacks for the Plotting Buttons
The callbacks for the plotting buttons call get_var_names to get the names of
the variables to plot and then call
evalin to execute the plot commands in the
base workspace.
For example, here is the callback for the
plot function:
function plot_button_Callback(hObject, eventdata, handles)
[x,y] = get_var_names(handles);
evalin('base',['plot(' x ',' y ')'])
The command to evaluate is created by concatenating the strings and variables
that result in the command:
plot(x,y)
Seitenansicht 242
1 2 ... 238 239 240 241 242 243 244 245 246 247 248 ... 329 330

Kommentare zu diesen Handbüchern

Keine Kommentare