Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/url/2.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
倍频程错误:urlwrite:键入下载文件时无法打开文件_Url_Download_Octave - Fatal编程技术网

倍频程错误:urlwrite:键入下载文件时无法打开文件

倍频程错误:urlwrite:键入下载文件时无法打开文件,url,download,octave,Url,Download,Octave,Version5.2.0 Octave:我无法写入或读取URL(用于下载)。我使用W10和Edge `>> [f, success, message] = urlread('https://static.stooq.com/db/h/d_macro_txt.zip') >> [f, success, message] = urlwrite('https://static.stooq.com/db/h/d_macro_txt.zip','d:\') error: urlwr

Version5.2.0 Octave:我无法写入或读取URL(用于下载)。我使用W10和Edge

`>> [f, success, message] = urlread('https://static.stooq.com/db/h/d_macro_txt.zip')
>> [f, success, message] = urlwrite('https://static.stooq.com/db/h/d_macro_txt.zip','d:\')
error: urlwrite: unable to open file`
url存在,我可以使用Edge下载它。我如何调试这个

编辑:要下载的文件尚未打开;我也尝试过urlread,这是可以阅读的;然后我可以使用save命令将“readfile变量”保存到磁盘。对于.zip文件,这不会成功:然后我也可以保存它,但无法解压缩。所以我认为这不是权限问题。可能是什么?
Edit2:我尝试将zip文件“urlread”为字符串(在GUI中的.m文件中),然后Octave GUI在保存之前挂起。必须转到任务管理器才能重新启动Octave。

urlwrite要求将文件名作为第二个参数,而不是目录/驱动器

尝试:


你是在问如何用八度音阶解压zip文件吗?
[f, success, message] = urlwrite('https://static.stooq.com/db/h/d_macro_txt.zip','d:\d_macro_txt.zip')