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

 채택된 답변

Jan
Jan 2021년 5월 16일

0 개 추천

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?

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

질문:

2021년 5월 16일

답변:

Jan
2021년 5월 16일

Community Treasure Hunt

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

Start Hunting!

Translated by