Rename columns before import

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일

1 개 추천

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

카테고리

도움말 센터File Exchange에서 Standard File Formats에 대해 자세히 알아보기

태그

질문:

2022년 10월 15일

답변:

2022년 10월 15일

Community Treasure Hunt

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

Start Hunting!

Translated by