Single quotes around dataset elements in 2017a?
4 views (last 30 days)
In MATLAB 2017a, when I load a dataset, say, cities.mat, all the city names come with single quotes around them, as shown in the attached file. When I call, say, the 5th element, it returns the city name with the quotation marks. Moreover, there is no way of getting rid of them through indexing.
When I run the same dataset in 2014a, for example, the quotes are not there. What am I doing wrong?
Walter Roberson on 14 Jun 2017
Those quotation marks are not present in the input: they are part of the display. You would see the same thing if you went to the MATLAB command prompt and typed
Because are only part of the display representation you do not need to do anything about them unless you are dealing with display representation matters -- in which case you could continue to use fprintf()