Can I change the Import tool settings

3 visualizaciones (últimos 30 días)
Tim
Tim el 10 de Sept. de 2025
Comentada: Tim el 10 de Sept. de 2025
When Matlab 2022 imported data into tables, the column names had non standard characters replaced with null. Matlab 2025 is replacing them with underscores. Can I change a setting somewhere to use null again of underscore?
  2 comentarios
Walter Roberson
Walter Roberson el 10 de Sept. de 2025
How exactly are you importing the data into tables?
Tim
Tim el 10 de Sept. de 2025
I am using just the right click menu command. Hoping there is a way that does not need code everytime I load a csv.

Iniciar sesión para comentar.

Respuestas (1)

Chuguang Pan
Chuguang Pan el 10 de Sept. de 2025
Movida: Walter Roberson el 10 de Sept. de 2025
You can change data import settings with detectImportOptions function. You can configure VariableNamingRule = "modify" (default) | "preserve". In "modify" option, invalid variable names will be converted to valid MATLAB identifiers, while "preserve" option will preserve original variable names with non standard characters.
  1 comentario
Tim
Tim el 10 de Sept. de 2025
Thanks Chuguang. The default "modify" appeqars to be an underscore. Vp (m/s) becomes Vp_m_s_. Looks a bit weird. Hoping someone knows an obscure file or setting somewhere I change that underscore to a null.

Iniciar sesión para comentar.

Categorías

Más información sobre Startup and Shutdown en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2025a

Community Treasure Hunt

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

Start Hunting!

Translated by