how to close an excel file
이전 댓글 표시
Hellow everyone . i am using
winopen('myfile.xlsx')
to open an excel file , after doing some modification, i want to close the excel file in order to overwrite the existing data by
xlswrite('myfile.xlsx', my_modified_data )
but sometimes i forgot to close the file manually in between and MATLAB generates an error . Is there any way to automatically close the excel file(by some command like winclose or something like that) before writing into it . Thank You all .
채택된 답변
추가 답변 (1개)
Artem Smirnov
2017년 1월 19일
Try this:
close all
댓글 수: 1
Image Analyst
2017년 1월 19일
And when/if you do, you'll see that close does not shutdown other processes and applications like Excel.
카테고리
도움말 센터 및 File Exchange에서 Data Import from MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!