|Convert to cell array of character vectors|
|Convert integers to characters|
|Convert matrix to characters|
|Convert numbers to character array|
|Convert strings to double precision values|
|Convert character array or string to numeric array|
|Convert numeric bytes to Unicode character representation|
|Convert Unicode character representation to numeric bytes|
|Convert text representing number in base N to decimal number|
|Convert text representation of binary number to decimal number|
|Convert decimal number to character array representing base-N number|
|Convert decimal number to character array representing binary number|
|Convert decimal number to character array representing hexadecimal number|
|Convert text representation of hexadecimal number to decimal number|
|Convert IEEE hexadecimal format to double-precision number|
|Convert single- and double-precision numbers to IEEE hexadecimal format|
|Convert table to homogeneous array|
|Convert table to cell array|
|Convert table to structure array|
|Convert homogeneous array to table|
|Convert cell array to table|
|Convert structure array to table|
Convert text to arrays of numeric values. Text can represent floating-point values, dates and times, and hexadecimal and binary numbers. If text represents dates and times, then you can convert the text to datetime or duration values.
Convert numeric values to text. Text can represent floating-point values with or without exponential notation, dates and times, or hexadecimal or binary digits.
MATLAB® stores all characters as Unicode characters. Both strings and character vectors use the same encoding. You can convert characters to their Unicode code values, and numbers to characters.
Specify hexadecimal and binary values either as literals or as text. Hexadecimal and binary literals are stored as integers. You can convert text representing hexadecimal and binary values to numbers, and numbers to text representations.
datetime is the recommended
data type for representing points in time, you might need to work
with dates and time stored as date strings, date vectors, and serial
This example shows how to convert a variable in a table from a cell array of character vectors to a categorical array.
If you include elements of unlike classes in a matrix, MATLAB converts some elements so that all elements of the resulting matrix are of the same type. Data type conversion is done with respect to a preset precedence of classes.