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

Default

no description
Key Default Value Options Description
KEY '' none A key to search for.
back to top back to top

Some information of the method plist/mfind are listed below:
Class name plist
Method name mfind
Category Helper
Package name ltpda
VCS Version 3542afe99dea25c636b7ac3b82a9f6f8be9d447d
Min input args 1
Max input args -1
Min output args 1
Max output args -1




©LTP Team