Filter löschen
Filter löschen

save an excel file to be read only

2 Ansichten (letzte 30 Tage)
Yona
Yona am 7 Dez. 2014
Kommentiert: Yona am 8 Dez. 2014
can we save data on excel file (by xlswrite function or other way) and define the file to be read-only from matlab?

Akzeptierte Antwort

Jan
Jan am 7 Dez. 2014
Use this:
fileattrib(FileName, '-w')

Weitere Antworten (1)

dpb
dpb am 7 Dez. 2014
Inside Excel means using COM; you can use ! operator to shell OS command and set the ReadOnly file attribute for OS protection.
  1 Kommentar
Yona
Yona am 8 Dez. 2014
thank for the answer, i prefer using Jan way.

Melden Sie sich an, um zu kommentieren.

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by