Define Missing MATLABType Property
R2026bWhen defining arguments in a MATLAB® interface, MATLAB automatically converts C++ types to MATLAB types, as described in C++ to MATLAB Data Type Mapping. You can override or specify these mappings when programmatically defining argument behavior.
If the C++ type for the argument is a string, then use these options when specifying
values for the MATLABType and Size properties in clibgen.api.InputArgumentDefinition or clibgen.api.OutputArgumentDefinition objects when defining arguments.
This table shows typical mappings and options for string pointer types. The values are applied when defining argument types in the interface definition.
| C++ Type | MATLABType | Direction | Options for Size |
|---|---|---|---|
char*a |
| "input" | Scalar value |
char**char*[] |
| "input" | cell |
const char* |
| Scalar value | |
| "input" |
| |
const char**const
char*[] |
| "input" | Scalar value |
| "input" |
| |