Beruflich Dokumente
Kultur Dokumente
DataTypeConversion
Convertingbetweennumericarrays,characterarrays,cellarrays,structures,ortables
Functions
char Converttocharacterarray(string)
int2str Convertintegertostring
mat2str Convertmatrixtostring
num2str Convertnumbertostring
str2double Convertstringtodoubleprecisionvalue
str2num Convertstringtonumber
native2unicode ConvertnumericbytestoUnicodecharacterrepresentation
unicode2native ConvertUnicodecharacterrepresentationtonumericbytes
base2dec ConvertbaseNnumberstringtodecimalnumber
bin2dec Convertbinarynumberstringtodecimalnumber
dec2base ConvertdecimaltobaseNnumberinstring
dec2bin Convertdecimaltobinarynumberinstring
dec2hex Convertdecimaltohexadecimalnumberinstring
hex2dec Converthexadecimalnumberstringtodecimalnumber
hex2num Converthexadecimalnumberstringtodoubleprecisionnumber
num2hex ConvertsinglesanddoublestoIEEEhexadecimalstrings
table2array Converttabletohomogenousarray
table2cell Converttabletocellarray
table2struct Converttabletostructurearray
array2table Converthomogeneousarraytotable
cell2table Convertcellarraytotable
struct2table Convertstructurearraytotable
cell2mat Convertcellarraytonumericarray
cell2struct Convertcellarraytostructurearray
cellstr Createcellarrayofstringsfromcharacterarray
mat2cell Convertarraytocellarraywithpotentiallydifferentsizedcells
num2cell Convertarraytocellarraywithconsistentlysizedcells
struct2cell Convertstructuretocellarray
ExamplesandHowTo
ConvertingfromStringtoNumeric
ConvertingfromNumerictoString
Concepts
ValidCombinationsofUnlikeClasses
file:///D:/program%20files/MATLAB/R2014a/help/matlab/datatypeconversion.html 1/2
// DataTypeConversion
file:///D:/program%20files/MATLAB/R2014a/help/matlab/datatypeconversion.html 2/2