Can I change the Import tool settings
Show older comments
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 Comments
Walter Roberson
on 10 Sep 2025
How exactly are you importing the data into tables?
Tim
on 10 Sep 2025
Answers (1)
Chuguang Pan
on 10 Sep 2025
Moved: Walter Roberson
on 10 Sep 2025
0 votes
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.
Categories
Find more on Whos in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!