Type Conversion
Built-in functions › Programming and data types › Type Conversion
17 functions in this category.
| Function | What it does |
|---|---|
cast | Convert an array to a different element type. |
cell2mat | Convert a cell array to a matrix. |
cell2struct | Convert a cell array to a structure with named fields. |
char | Character with the given numeric code (Excel-compatible). |
double | Convert to double-precision floating-point. |
int16 | Convert to signed 16-bit integer (range −32,768 to 32,767). |
int32 | Convert to signed 32-bit integer. |
int64 | Convert to signed 64-bit integer. |
int8 | Convert to signed 8-bit integer (range −128 to 127). |
mat2cell | Split a matrix into a cell array of sub-matrices. |
num2str | Convert a number to a string. |
single | Convert to single-precision floating-point. |
struct2cell | Convert a structure to a cell array. |
uint16 | Convert to unsigned 16-bit integer (range 0 to 65,535). |
uint32 | Convert to unsigned 32-bit integer. |
uint64 | Convert to unsigned 64-bit integer. |
uint8 | Convert to unsigned 8-bit integer (range 0 to 255). |