save an excel file to be read only

3 ビュー (過去 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 Center および File ExchangeSpreadsheets についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by