How do I manipulate a column in a data file ??

조회 수: 3 (최근 30일)
Add
Add 2015년 11월 3일
답변: dpb 2015년 11월 3일
I have a data file with 10 columns and 28380 rows. I want to manipulate only the 7th column and reassign the values to the data. How do I do it ??
  댓글 수: 1
TastyPastry
TastyPastry 2015년 11월 3일
What kind of data file is it? .xlsx, .csv, etc.?

댓글을 달려면 로그인하십시오.

답변 (1개)

dpb
dpb 2015년 11월 3일
If it is an ASCII data file, then read the file, do the computation(s) on the column in question and rewrite it.
If it were an Excel file you could use xlsread|xlswrite to read the specific column but there's not a general way to write a portion of a text file.

카테고리

Help CenterFile Exchange에서 Standard File Formats에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by