How change column title?

7 ビュー (過去 30 日間)
Alejandro
Alejandro 2014 年 11 月 3 日
回答済み: Image Analyst 2014 年 11 月 3 日
I have a table created with the table() function where I used two matrices with n# of rows and 1 column as parameters.
year = transpose(year);
future_worth = transpose(future_worth);
tabl = table(year,future_worth);
disp(tabl)
My current column titles are "year" and "future_worth" just like the variables but I want future_worth to be spelled with a space instead of a "_". I tried changin it with "VariableNames" but since it changes the variable name it still does not allow spaces. Also, my values for future worth are in scientific notation, is there a way to format them so they are %.2f?

採用された回答

Image Analyst
Image Analyst 2014 年 11 月 3 日
It is not allowed in MATLAB. I don't know of any programming language that allows spaces in variable names or in field/member/method names of objects/classes/structures/tables.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeTables についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by