필터 지우기
필터 지우기

File Permissions problem

조회 수: 1 (최근 30일)
Rohan Khadatkar
Rohan Khadatkar 2012년 6월 5일
I have an array which I have to write in an excel spreadsheet. I am using an 'a+' permission but not able to reopen the file with editable permissions.
This is the piece of code which I am using:
pause on;
File_ID_2=fopen(Excel_sheet_name,'a+');
while File_ID_2 == -1
fprintf('Close the file and then press any key to continue.\n');
pause;
File_ID_2=fopen(Excel_sheet_name,'a+');
end
fclose(File_ID_2);
xlswrite(Excel_sheet_name,coeffvalues,Worksheet_name_optim,range_write);
pause off;
Thanks!
  댓글 수: 1
Geoff
Geoff 2012년 6월 5일
Wow, I just commented on your _other_ question. Moments later, you deleted that question and posted the same question again. Oh well, never mind.

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

답변 (0개)

카테고리

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

제품

Community Treasure Hunt

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

Start Hunting!

Translated by