MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE Dokumentacja Strona 177

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 216
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 176
List Box Directory Reader
5-11
First input argument is not a directory, but is a character string and there is
more than one argument — execute the subfunction identified by the
argument (execute callback).
The following code listing show the setup section of the GUI M-file, which does
one the following:
Sets the list box directory to the current directory, if no directory is specified.
Changes the current directory, if a directory is specified.
function lbox2_OpeningFcn(hObject, eventdata, handles, varargin)
% This function has no output args, see OutputFcn.
% hObject handle to figure
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% varargin command line arguments to untitled (see VARARGIN)
% Choose default command line output for lbox2
handles.output = hObject;
% Update handles structure
guidata(hObject, handles);
if nargin == 3,
initial_dir = pwd;
elseif nargin == 4 & exist(varargin{1},'dir')
initial_dir = varargin{1};
else
errordlg('Input argument must be a valid directory','Input
Argument Error!')
return
end
% Populate the listbox
load_listbox(initial_dir,handles)
Loading the List Box
This example creates a subfunction to load items into the list box. This
subfunction accepts the path to a directory and the
handles structure as input
arguments. It performs these steps:
Przeglądanie stron 176
1 2 ... 172 173 174 175 176 177 178 179 180 181 182 ... 215 216

Komentarze do niniejszej Instrukcji

Brak uwag

Atlona Amplificadores de audio manuales de usuario

Empezando en A

Haga clic en el alfabeto a continuación para desplazarse a la lista completa de modelos que comienzan con esa letra

Modelos Tipo de documento
AT-3GSDI-14
Manual de usuario   Residential - AVPro Alliance, 96 paginas
AT-DVI-14A
Manual de usuario   Atlona AT-DVI-14A User manual, 20 paginas
AT-HD-V112
Manual de usuario   Product Catalog, 60 paginas
Manual de usuario   Atlona AT-HD-V112 User manual, 7 paginas
AT-HD-V116
Manual de usuario   AtlonA - BZB Express, 9 paginas
AT-HD-V18
Manual de usuario   Atlona AT-HD-V18 User manual, 7 paginas
Manual de usuario   AtlonA, 9 paginas
AT-HD19SS
Manual de usuario   www.AtlonA.com, 2 paginas
AT-HDCAT-8
Manual de usuario   atlona-2014-catalog-2 - Genesis Technologies, 86 paginas
Manual de usuario   Atlona HDMI Distribution Amplifier Family, 6 paginas
Manual de usuario   Atlona 2 x 8 HDMI to HDBaseTTM Extended Distance Distribution, 1 paginas
AT-HDDA-4
Manual de usuario   Summer 2013 Catalog, 96 paginas
AT-HDDA-8
Manual de usuario   Atlona HDDA HDMI Distribution Amplifier Collection Atlona 1 x 8, 1 paginas
AT-HDRS
Manual de usuario   Atlona AT-HDRS User`s manual, 12 paginas
AT-PA100
Manual de usuario   Atlona [en] , 4 paginas
AT-PA100-G2
Manual de usuario   Atlona AT-PA100-G2 User manual, 10 paginas
Manual de usuario   Atlona AT-PA100-G2 User manual, 13 paginas
AT-SDI-14
Manual de usuario   Atlona AT-SDI-14 User`s manual, 16 paginas