필터 지우기
필터 지우기

Append array to row of the excel sheet without overwriting.

조회 수: 3 (최근 30일)
Yashvardhan Bhati
Yashvardhan Bhati 2022년 10월 13일
댓글: Yashvardhan Bhati 2022년 10월 13일
I am trying to apped one of the array (lets say xx) which stores certain data entries(All of same type) to excel row.
I will be running the same code multiple times and data that is stored in array (xx) is renewed every iterations and i would like to store data to excel sheet before i give command for running new iteration.
xlswrite(['File_Address\Filename.xlsx'], xx,';append' )
the above command overwrites the exisiting data instead of writing data below it. (Array size remain constant.)
  댓글 수: 2
Simon Chan
Simon Chan 2022년 10월 13일
If your MATLAB version is R2019a or later, it is better to use function writematrix, writecell or writetable with append option.
Yashvardhan Bhati
Yashvardhan Bhati 2022년 10월 13일
Thanks this works. @Simon Chan
writematrix( xx,['FileAddress\Filename.xlsx'],'WriteMode','append')

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

답변 (0개)

카테고리

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

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by