MATLAB: Remove and clear things in a table for presentation

table removing squarebrackets singlequotes

I have a table like this:
T = 2×3 table
percent cars cats
________ _________________ _____________________
'59%' 'hej' 'nej'
[] '42405' '26211'
I would like this to look like this
percent cars cats
________ _________________ _____________________
59% hej nej
42405 26211
Removing [] and ' '. Is there any possible way to achieve this ?
Thanks in advance

Best Answer

Martin, the display you get for a table is aimed at showing the data in the same way as those variables would be shown if they were not in a table. It sounds like you are looking for something more towards to presentation graphics.
If you converted all of your (I think) cellstr variables to char, you'd be closer to what you want, except for the {}. Perhaps you could (temporarily?) change those values to '[]'?
>> table(["a";"b"],{'a';'b'},['a';'b'])
ans =
2×3 table
Var1 Var2 Var3
____ ____ ____
"a" 'a' a
"b" 'b' b