Check validity of connectivity argument
iptcheckconn(conn, func_name, var_name,
A connectivity argument can be one of the following scalar values: 1, 4, 6, 8, 18, or 26. A connectivity argument can also be a 3-by-3-by- ... -by-3 array of 0's and 1s. The central element of a connectivity array must be nonzero and the array must be symmetric about its center.
func_name is a string that specifies the name used in the formatted error message to identify the function checking the connectivity argument.
var_name is a string that specifies the name used in the formatted error message to identify the argument being checked.
arg_pos is a positive integer that indicates the position of the argument being checked in the function argument list. iptcheckconn includes this information in the formatted error message.
iptcheckconn supports the generation of efficient, production-quality C/C++ code from MATLAB. When generating code, all input arguments must be compile-time constants. Generated code for this function uses a precompiled platform-specific shared library. To see a complete list of toolbox functions that support code generation, see List of Supported Functions with Usage Notes.