imwrite function and permission error
显示 更早的评论
I read any question and answer about my problem, but I couldn't find my solution. I checked read only about my folder. I use mkdir , but I can't do it. Could you help me more. Thanks alot
K>> imwrite(a1,'C:\Users\Bahar\Documents\Uni\Thesis\IMP\930620','jpg');
Error using imwrite (line 455) Unable to open file "C:\Users\Bahar\Documents\Uni\Thesis\IMP\930620" for writing. You may not have write permission.
采纳的回答
更多回答(1 个)
aditya chiliveri
2016-6-23
I had the same issue of write permission.
Try checking if the file which you want to write already exists in the folder by below script
if exist('folder\filename.jpg', 'file')
delete('folder\filename.jpg')
end
Then try saving again by imwrite
类别
在 帮助中心 和 File Exchange 中查找有关 Files and Folders 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!