我试图用matlab写一个图像,但我一直在接受这个错误我改变了文件夹的位置但是同样的错误 [英] I Tried To Write An Image With Matlab But I Keep Recieving This Error I Changed The Location Of The Folder But The Same Error

查看:78
本文介绍了我试图用matlab写一个图像,但我一直在接受这个错误我改变了文件夹的位置但是同样的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这里是简单代码的亮点

imwrite(i,'C:\ Users \user \Desktop \ Nouveau dossier','jpg');

,这是错误:

here is the ligne of the code it is simple
imwrite(i,'C:\Users\user\Desktop\Nouveau dossier','jpg');
and here is the error :

Error using imwrite (line 455)
Unable to open file "C:\Users\user\Desktop\Nouveau dossier" for writing.  You may not have
write permission.

推荐答案

OP检查了文件夹的权限,并确认他们没有写入权限。

总结:快速检查方法是使用Windows资源管理器导航到该文件夹​​并尝试右键单击,创建新的文本文件。

您始终可以检查文件夹用于检查同一位置的权限的属性
OP reviewed the permissions on the folder and has confirmed that they didn't have write access.
To summarise: Quick way to check is to navigate to the folder using Windows Explorer and attempt to right-click, create new text file.
You can always examine the folder properties to check permissions in the same place


这篇关于我试图用matlab写一个图像,但我一直在接受这个错误我改变了文件夹的位置但是同样的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆