titel for tables with spce between the words

3 Ansichten (letzte 30 Tage)
Franziska Domeier
Franziska Domeier am 16 Jan. 2020
Kommentiert: dpb am 16 Jan. 2020
I would like to have spece between subject and number, but the error is, that is not allowed to have space in variables. Is there a possibility? I wouldn't like to have underscores.
table_subjects = cell2table(table(1:end,:),'VariableNames',{'Subject number' 'Gender' 'Age' 'Weight' 'Height' 'Systolic_pressure' 'Diastolic_pressure'}),
Error in Liste_aller_Matlabfiles (line 50)
table_subjects = cell2table(table(1:end,:),'VariableNames',{'Subject number' 'Gender' 'Age' 'Weight' 'Height' 'Systolic_pressure'
'Diastolic_pressure'})

Akzeptierte Antwort

Star Strider
Star Strider am 16 Jan. 2020
The R2019b release allows spaces and other (inluuding Unicode) characters in table variable names. Upgrade to it and you will be able to do what you want.
  9 Kommentare
Star Strider
Star Strider am 16 Jan. 2020
@Steven — Thank you. I’ve not needed to get that much into using the new variable name options, so I appreciate your clarification.
dpb
dpb am 16 Jan. 2020
"The character for ‘pi’ is a Unicode character, and I am not certain how to use those."
Star-- I was simply writing pi above as an example of an assignment reference to an existing table name with embedded blanks....
Steven, any guesstimates as to the added parsing overhead this refinement requires? While nice for presentation, I wonder about performance.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Data Type Conversion finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by