iptcheckstrs
Check validity of parameter name
iptcheckstrs
will be removed in a future release. Use
validatestring
instead.
Description
checks whether param
= iptcheckstrs(str
,valid_strs
,func_name
,var_name
,arg_pos
)str
is a valid
parameter name and issues a formatted error message if
the parameter name is invalid.
If there is a case-insensitive, unambiguous match between
str
and a valid parameter name invalid_strs
, theniptcheckstrs
returns the valid parameter name inparam
.If there is no match or the match is ambiguous, then
iptcheckstrs
issues a formatted error message that includes information about the function name (func_name
), the variable name (var_name
), and the argument position (arg_pos
). These values are used only to create the error message, not to check whether the parameter is valid.
The figure shows the format of the error message and
indicates which parts you can customize using
iptcheckstrs
arguments.
Examples
Input Arguments
Output Arguments
Version History
Introduced before R2006a
See Also
validatestring
| iptcheckhandle
| validateattributes
| iptcheckmap
| narginchk
| iptnum2ordinal