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
VERSION: $Id: mfind.m,v 1.6 2011/04/08 08:56:21 hewitson Exp $
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
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 |
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 |
CVS Version |
$Id: mfind.m,v 1.6 2011/04/08 08:56:21 hewitson Exp $ |
Min input args |
1 |
Max input args |
-1 |
Min output args |
1 |
Max output args |
-1 |
|
Method: plist/merge |
|
Method: plist/nparams |
 |
©LTP Team