Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/image/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Image 用于检查web上图像的MATLAB命令_Image_Matlab_Web_Command - Fatal编程技术网

Image 用于检查web上图像的MATLAB命令

Image 用于检查web上图像的MATLAB命令,image,matlab,web,command,Image,Matlab,Web,Command,我试过以下方法 url=[http://upload.wikimedia.org/wikipedia/pt/c/ce/Who_Killed_the_Electric_Car.jpg]; filename = [teste.jpg] urlwrite (url, filename) 通过执行这些步骤,此链接中的图像将写入“teste.jpg”文件名下 另一方面,如果我尝试: url=[http://upload.wikimedia.org/wikipedia/pt/c/ce/ererr.jpg]

我试过以下方法

url=[http://upload.wikimedia.org/wikipedia/pt/c/ce/Who_Killed_the_Electric_Car.jpg];
filename = [teste.jpg]
urlwrite (url, filename)
通过执行这些步骤,此链接中的图像将写入“teste.jpg”文件名下

另一方面,如果我尝试:

url=[http://upload.wikimedia.org/wikipedia/pt/c/ce/ererr.jpg];
filename = [teste.jpg]
urlwrite (url, filename)
Matlab提示符将返回:

???在140处使用==>urlwrite时出错下载URL时出错。你的 网络连接可能已关闭,或者代理设置不正确 配置


那么,如何让matlab检查图像是否存在?

如果使用输出参数,错误将被抑制。见文件

[filestr,status]=urlwrite(41;将文件路径存储在变量filestr中,并使用以下任何一种方法抑制错误消息的显示: 前面语法中的输入参数。手术结束时 成功,状态为1。否则,状态为0