strel supports the generation of C code (requires MATLAB® Coder™). However,
- All input arguments must be compile-time constants.
- The methods associated with strel objects are not supported in code generation.
- Arrays of strel objects are not supported.