save an excel file to be read only

조회 수: 4 (최근 30일)
Yona
Yona 2014년 12월 7일
댓글: Yona 2014년 12월 8일
can we save data on excel file (by xlswrite function or other way) and define the file to be read-only from matlab?

채택된 답변

Jan
Jan 2014년 12월 7일
Use this:
fileattrib(FileName, '-w')

추가 답변 (1개)

dpb
dpb 2014년 12월 7일
Inside Excel means using COM; you can use ! operator to shell OS command and set the ReadOnly file attribute for OS protection.
  댓글 수: 1
Yona
Yona 2014년 12월 8일
thank for the answer, i prefer using Jan way.

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

카테고리

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