Cannot create a file

Hey everyone,
I have to save an image to a file with imwrite function however, if file does not exists, my script fails with the error message "You might not have write permission". If the file already exists, no failing occurs. I thought to create an empty file with fprint before saving the image but the fopen returns -1 and i can't do it. How can I resolve this?
Thanks in advance!

1 comentario

Stephen23
Stephen23 el 27 de Oct. de 2018
"How can I resolve this?"
Change the folder permissions.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Productos

Versión

R2018a

Etiquetas

Preguntada:

el 27 de Oct. de 2018

Comentada:

el 27 de Oct. de 2018

Community Treasure Hunt

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

Start Hunting!

Translated by