save an excel file to be read only

6 visualizzazioni (ultimi 30 giorni)
Yona
Yona il 7 Dic 2014
Commentato: Yona il 8 Dic 2014
can we save data on excel file (by xlswrite function or other way) and define the file to be read-only from matlab?

Risposta accettata

Jan
Jan il 7 Dic 2014
Use this:
fileattrib(FileName, '-w')

Più risposte (1)

dpb
dpb il 7 Dic 2014
Inside Excel means using COM; you can use ! operator to shell OS command and set the ReadOnly file attribute for OS protection.

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by