V = loadset loads all the VEC/VC7 files of the current directory into
the MATLAB structure array V. This is essentially equivalent to
V = loadvec({'*.vec','*.vc7'}), except that loadset makes use of a
MAT-file called 'set.mat' to save time (see below). See loadvec for
the content of V.
V = loadset(DIR) loads all the VEC/VC7 files from the specified
directory DIR in the structure array V. If DIR is a cell array
(e.g. {'dir1','dir2'}), then loads all the VEC/VC7 files from each
directory. Wildcards (*) may be used: V=loadset('set*') loads all the
VEC/VC7 files in all the directories 'set*'. Brackets ([]) are also
accepted (see expandstr for details). For example,
V = loadset('set[1:3,1]') loads all the VEC/VC7 files in the
directories 'set1', 'set2', 'set3'. DIR can be a cell array with a
combination of wildcards and brackets.
V = loadset(DIR, FILE) loads only the file(s) FILE in the directory(s)
DIR. This is useful when DIR and/or FILE are cell arrays and/or contain
wildcards (*) and/or brackets (see expandstr). This is equivalent to
V = loadvec([DIR '/' FILE]).
V = loadset(DIR, NUM) loads only the file number NUM in the directory(s)
DIR (works in alphanumeric order, only for VEC and VC7 files). NUM may
be a simple number or any valid Matlab vector (eg, 1:10, [1 10], etc.)
loadset(...) without output argument is a shortcut for
showvec(loadset(...)).
Examples:
V = loadset('myset') loads all the VEC/VC7 files in the directory
'myset'.
showvec(loadset) displays all the files from the current directory.
V = loadset('set*','B00001.vec') loads the files 'B00001.vec'
contained in each directory 'set*'.
V = loadset('set*','*.vec') loads all the VEC files in each directory
'set*'.
V = loadset({'set1','set2'},{'file1.vec','B*.vec'}) loads 'file1.vec'
and all the VEC files 'B*' in the two directories 'set1' and 'set2'.
V = loadset('set*','B[5:10]*') loads 'B00005.vec' to 'B00010.vec' in
each directory 'set*' (see loadvec and expandstr for details).
V = loadset('set[200:5:400,2]*','B01.vec') loads the files 'B01.vec'
contained in each directory 'set200*','set205*','set210*' etc.
V = loadset('set*',1:10) loads the 10 first files from each directory
'set*'.
The first time loadset is used to load all the VEC/VC7 files in a
directory (ie without the argument FILE), a MAT-file called 'set.mat'
containing the structure array V for all the VEC/VC7 files of this
directory is created. The next time loadset is used, the file
'set.mat' is loaded instead of each original VEC/VC7 file, to save time
(this is about 5 times faster). Once this file 'set.mat' has been
created, the original VEC/VC7 files are not necessary.
V = loadset(...,'overwrite') loads the original VEC/VC7 files even if a
'set.mat' file already exists, and saves (overwrites) a new 'set.mat'.
V = loadset(...,'nosave') loads the original VEC/VC7 files even if a
'set.mat' file already exists, and does not save the 'set.mat' file.
F. Moisy
Revision: 1.45, Date: 2005/11/18.
See Also
loadvec, vec2mat, loadarrayvec, batchvec, showvec, expandstr,
rdir.