image processing write permission

4 visualizzazioni (ultimi 30 giorni)
Esraa othman
Esraa othman il 16 Mag 2021
Risposto: Jan il 16 Mag 2021
when i use imwrite command this appear to me "Unable to open file for writing. You may not have write permission"
., please i need help to solve this

Risposta accettata

Jan
Jan il 16 Mag 2021
If you specify a folder, in which you do not have write permissions, you cannot create a file there. If you omit a folder in the file name, the current folder is used.
folder = tempdir;
img = rnd(100, 100, 3);
imwrite(img, fullfile(folder, 'YourFile.png'));
Does this fail also?

Più risposte (0)

Categorie

Scopri di più su Image Processing Toolbox in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by