Method plist/mfind
MFIND multiple-arguments find routine for a parameter list.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
DESCRIPTION: MFIND multiple-arguments find routine for a parameter list.
Returns the value corresponding to the first parameter in
the list with the search-key list. The search-key list are
searched by the order they are entered.
If the user specifies two outputs, the second will contain the
matching key
CALL: a = mfind(pl, 'key1', 'key2', 'key3')
[a, key] = mfind(pl, 'key1', 'key2', 'key3')
a = mfind(pl, {'key1', 'key2', 'key3'})
[a, key] = mfind(pl, {'key1', 'key2', 'key3'})
a = mfind(pl, plist({'key1', 'key2', 'key3'}))
[a, key] = mfind(pl, plist({'key1', 'key2', 'key3'}))
EXAMPLES:
1) % get the parameter with key 'foo1', or if not found, get the parameter with key 'foo2'
pl = plist('foo2', 5);
a = pl.mfind('foo1','foo2')
2) % get the parameter with key 'WIN', or if not found, get the parameter with key 'WIN2'
pl = plist('WIN', 'BH92', 'WIN2', 'Hamming');
[a, key] = pl.mfind(plist('key', 'WIN'), 'WIN2')
Parameters Description
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
| Method Details |
|
| Access |
public |
| Defining Class |
plist |
| Sealed |
0 |
| Static |
0 |
Parameter Description
| Sets for this method … |
| Default |
Default |
| no description |
| Key |
Default Value |
Options |
Description |
| utils.generic_getInfo |
| KEY |
'' |
none |
A key to search for. |
back to top
| Some information of the method plist/mfind are listed below: |
| Class name |
plist |
| Method name |
mfind |
| Category |
Helper |
| Package name |
ltpda |
| Can be used as modifier |
0 |
| Supported numeric types |
{'double'} |
|
Method: plist/merge |
|
Method: plist/nparams |
 |
©LTP Team