Change variable names in a table

49 ビュー (過去 30 日間)
Jesse
Jesse 2018 年 11 月 22 日
コメント済み: Stephen23 2023 年 7 月 27 日
Hi all,
I would like to change all variable names within a table, to attached file, a cell array.
This is what i use now;
rf1.Properties.VariableNames = vars1

採用された回答

Stephen23
Stephen23 2018 年 11 月 22 日
編集済み: Stephen23 2018 年 11 月 22 日
You can use a cell array of names, like this:
rfi.Properties.VariableNames = {'name1','name2',...}
  5 件のコメント
Sampath Rachumallu
Sampath Rachumallu 2020 年 6 月 29 日
Unable to add spaces in Column names of a table using above.
Steven Lord
Steven Lord 2020 年 6 月 29 日
The ability to have spaces in table variable names was introduced in release R2019b as stated in the Release Notes.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

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

製品


リリース

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by