Rename columns before import

12 ビュー (過去 30 日間)
Kayleigh
Kayleigh 2022 年 10 月 15 日
回答済み: KSSV 2022 年 10 月 15 日
If I've just uploaded a csv file and I want to change the column names before I import the selection and generate a live script, how would I go about doing that please? It doesn't seem like I can edit the text at all.

回答 (1 件)

KSSV
KSSV 2022 年 10 月 15 日
You can read the .csv file using readtable. After reading, you can rename the column name to what you want. Read about readtable.

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by