Converting cell array to num array for conversions

3 visualizaciones (últimos 30 días)
Tony
Tony el 6 de Dic. de 2021
Editada: Tony el 6 de Dic. de 2021
I have a table like so:
float float_1 string
that is a cell array (this table is larger but this is just for documentation purposes). . I want to convert this into a num array, so that I can convert each cell to decimal format based on its data type.
I'm not too sure where to start.
Thanks in advance.

Respuestas (1)

David Hill
David Hill el 6 de Dic. de 2021
Is your data is hexidecimal? You can convert it directly to decimal (use java BigInteger for large numbers)
import java.math.*
x=BigInteger('c3803512436677c4',16);

Categorías

Más información sobre Data Type Conversion en Help Center y File Exchange.

Productos

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by