MATLAB: Variable name in a table with a space in it

namestable

Hello,
how can I create a variable name in a table with a space character inside?
When I use
table(data,'RowNames',{'Row1'},'VariableNames',{'Variable X'})
I get the error message
'Variable X' is not a valid name.
How can I circumvent that?

Best Answer

No. I don't know of any languages that can take spaces in variable names. The usual workaround is to use a different character, often an underline or dash.