MATLAB R2019b table variable names can have spaces
On the 11th of September MATLAB R2019b was released. There are countless new features to MATLAB and all the toolboxes. This article will focus on a personal favorite of Gareth, one of the co-founders of VersionBay: in MATLAB R2019b table variable names can have spaces and non-ASCII characters. In the MATLAB Release Notes it appears as:
MATLAB Release Note for R2019b
timetableData Types: Variable names can have any characters, including spaces and non-ASCII characters
For many years, it has been tricky to work with spreadsheets with “special” column names. When you used
This is not a huge new feature but certainly appreciated. There are a few considerations that MathWorks calls out about using it, however, a key aspect is that it only works from R2019b onwards.
% R2019a data = readtable("SimpleTable.xlsx") data.Pa_s(1) data.("Pa_s")(1)
% R2019b data = readtable("SimpleTable.xlsx", ... "PreserveVariableNames", true) data.("País")(1)
If you found this article interesting and would like to learn more tips and tricks Contact Us.