read/write csv file

조회 수: 10 (최근 30일)
NAFTALI HERSCOVICI
NAFTALI HERSCOVICI 2022년 1월 15일
답변: Walter Roberson 2022년 1월 15일
Hello,
Is it possible to read a specific range1 in a csv file AND write a specific range2 in the same file WITHOUT altering the range1
Like an 'append' option for csvwrite or xlswrite
prefere csv rather than xlsx (had many problems with xlsx format before)
Thank you

채택된 답변

Walter Roberson
Walter Roberson 2022년 1월 15일
dlmwrite() offers the option -append . Note, however, that this is restricted to writing additional rows immediately after all existing rows.
writematrix() offers the option 'writemode', 'append' . Note, however, that this is restricted to writing additional rows immediately after all existing rows.
The technology of the representation of text files does not permit selected parts of a file to be overwritten -- not without rewriting the entire file.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Text Files에 대해 자세히 알아보기

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by