How to set 'PreserveVariableNames' to True while importing an Excel file into matlab?
61 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
WalterWhite
el 14 de En. de 2020
Comentada: Fangjun Jiang
el 14 de En. de 2020
I need it to keep the tables in the original format with spaces and non ASCII characters. I've read that this option is available in R2019b. But how to do it?
0 comentarios
Respuesta aceptada
Fangjun Jiang
el 14 de En. de 2020
help readtable
'PreserveVariableNames' Flag to preserve variable names, specified
as true or false. The default value is false. When
specified as true, MATLAB preserves variable names
that are not valid MATLAB identifiers such as variable
names that include spaces and non-ASCII characters.
2 comentarios
Fangjun Jiang
el 14 de En. de 2020
out=readtable('test.xlsx','PreserveVariableNames',true)
Más respuestas (0)
Ver también
Categorías
Más información sobre Data Import from MATLAB 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!