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

Stephen23
Stephen23 2018년 10월 27일
"How can I resolve this?"
Change the folder permissions.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 Low-Level File I/O에 대해 자세히 알아보기

제품

릴리스

R2018a

질문:

2018년 10월 27일

댓글:

2018년 10월 27일

Community Treasure Hunt

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

Start Hunting!

Translated by