Rename columns before import

12 Ansichten (letzte 30 Tage)
Kayleigh
Kayleigh am 15 Okt. 2022
Beantwortet: KSSV am 15 Okt. 2022
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.

Antworten (1)

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

Kategorien

Mehr zu Standard File Formats finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by