MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE Dokumentacja Strona 184

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 216
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 183
5 GUI Applications
5-18
var1 = list_entries{index_selected(1)};
var2 = list_entries{index_selected(2)};
end
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)
Przeglądanie stron 183
1 2 ... 179 180 181 182 183 184 185 186 187 188 189 ... 215 216

Komentarze do niniejszej Instrukcji

Brak uwag