MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE Guida Utente Pagina 439

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 759
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 438
Access Workspace Variables from a List Box (GUIDE)
list_entries = get(handles.listbox1,'String');
index_selected = get(handles.listbox1,'Value');
if length(in dex_ selected) ~= 2
errordlg('You m ust select two var iabl es',...
'Incorrect S elec tion','modal')
else
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_b utto n_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, and looks like this:
try
evalin('base',['semilogx(',x,',',y,')' ])
catch ex
errordlg(...
ex.getReport('basic'),'Error generating semilogx pl ot','modal')
end
The try/catch block handles errors resulting from attempting to graph
inappropriate data. When evaluated, the result of the command is:
plot(x,y)
The other two plotting buttons w ork in the same way, resulting in
semilogx(x,y) and semilogy(x,y).
10-65
Vedere la pagina 438
1 2 ... 434 435 436 437 438 439 440 441 442 443 444 ... 758 759

Commenti su questo manuale

Nessun commento

AEG A1283GS7 podręczniki

Instrukcje obsługi i podręczniki użytkownika dla Zamrażarki AEG A1283GS7.
Dostarczamy 1 pdf podręczników AEG A1283GS7 do pobrania za darmo według typów dokumentów: Instrukcja Użytkownika






Więcej produktów i instrukcji dla Zamrażarki AEG

Modele Rodzaj dokumentu
AG88850I Instrukcja Użytkownika   Aeg AG88850I Benutzerhandbuch, 12 strony
AG78850I Instrukcja Użytkownika    Aeg AG78850I Handleiding, 22 strony
SFB41211AS Instrukcja Użytkownika      Aeg SFB41211AS Handleiding, 64 strony
A71100TSX0 Instrukcja Użytkownika    Aeg A71100TSX0 Manuel utilisateur, 36 strony
SKS68800S2 Instrukcja Użytkownika      Aeg SKS68800S2 Handleiding, 44 strony
S83600CSM1 Instrukcja Użytkownika     Aeg S83600CSM1 Korisnički priručnik [de] [en] , 48 strony
SC41840-1I Instrukcja Użytkownika    Aeg SC41840-1I Handleiding [de] , 26 strony
SK81240I Instrukcja Użytkownika Aeg SK81240I Brugermanual, 30 strony
ABB68811LS Instrukcja Użytkownika      Aeg ABB68811LS Handleiding [en] , 56 strony
SK71000-4I Instrukcja Użytkownika     Aeg SK71000-4I User Manual, 18 strony
AGS68200F0 Instrukcja Użytkownika      Aeg SKS68200F0 User Manual, 56 strony
A81000TNX1 Instrukcja Użytkownika   Aeg A81000TNX1 User Manual, 20 strony
S3258DT8 Instrukcja Użytkownika   Aeg S3258DT8 User Manual, 21 strony
SFB58821AS Instrukcja Użytkownika      Aeg SFB58821AS Handleiding [de] , 64 strony
SKS68200F0 Instrukcja Użytkownika Aeg SKS68200F0 Brukermanual [en] [fr] [nl] , 16 strony
OEKOA.1343-6E Instrukcja Użytkownika   Aeg OEKOA.1343-6E User Manual [es] [it] [nl] [pt] , 27 strony
ABS6821VAF Instrukcja Użytkownika   Aeg ABS6821VAF User Manual, 16 strony
AGS68800S1 Instrukcja Użytkownika      Aeg AGS68800S1 Handleiding [fr] [nl] , 48 strony
SKS88840C0 Instrukcja Użytkownika     Aeg SKS98849C0 Handleiding, 56 strony
SKB41211AS Instrukcja Użytkownika       Aeg SKB41211AS Handleiding, 52 strony