Conversion from string to numbers within table
Mostrar comentarios más antiguos
Hi,
I have table with data (attached below), which I want to convert from string to numbers and store as the same table. Is there any fast way to do this?
In brief, I just want to change the format of data in table.
Respuestas (1)
Most likely you should fix the data importing, rather than messing around with converting strings.
load('data.mat')
T = varfun(@str2double,A_NFC);
T.Properties.VariableNames = A_NFC.Properties.VariableNames;
T.Time = datetime(A_NFC.Time,'InputFormat','dd.MM.yyyy')
1 comentario
Joanna Przeworska
el 13 de Abr. de 2021
Categorías
Más información sobre Cell Arrays en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!