Differences

This shows you the differences between two versions of the page.

Link to this comparison view

reference:keyvalcheck [2018/08/23 14:43] (current)
Line 1: Line 1:
 +=====  KEYVALCHECK =====
 +
 +Note that this reference documentation is identical to the help that is displayed in MATLAB when you type "help keyvalcheck"​.
 +
 +<​html><​pre>​
 +  <a href=/​reference/​keyvalcheck><​font color=green>​KEYVALCHECK</​font></​a>​ is a helper function for parsing optional key-value input pairs.
 + 
 +  Use as
 +    keyvalcheck(argin,​ '​required', ​ {'​key1',​ '​key2',​ ...})
 +    keyvalcheck(argin,​ '​forbidden',​ {'​key1',​ '​key2',​ ...})
 +    keyvalcheck(argin,​ '​optional', ​ {'​key1',​ '​key2',​ ...})
 + 
 +  See also <a href=/​reference/​keyval><​font color=green>​KEYVAL</​font></​a>​
 +</​pre></​html>​