Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/matlab/14.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
从HTTPS将数据导入MATLAB_Matlab_Https - Fatal编程技术网

从HTTPS将数据导入MATLAB

从HTTPS将数据导入MATLAB,matlab,https,Matlab,Https,有人知道这是否可能吗 我正在尝试使用以下代码获取数据 url = 'https://cgwb.nci.nih.gov/cgi-bin/hgTracks'; params = {'org','Human','db','hg18','position','EGFR'}; urltxt = urlread(url,'get',params); 但是,我得到了错误 ??? Error using ==> urlread at 111 Error downloading URL. Your net

有人知道这是否可能吗

我正在尝试使用以下代码获取数据

url = 'https://cgwb.nci.nih.gov/cgi-bin/hgTracks';
params = {'org','Human','db','hg18','position','EGFR'};
urltxt = urlread(url,'get',params);
但是,我得到了错误

??? Error using ==> urlread at 111
Error downloading URL. Your network connection may be down or your proxy settings improperly configured.
如果我将https替换为http,它会工作,但我会得到带有上述https链接的“301永久移动”页面

浏览器中的链接在这两种情况下都能正常工作(重定向http请求)。该站点不需要任何身份验证


除了urlread,可能还有其他方法吗?

对不起,我在上面找到了答案:

如果需要,将测试并移除

更新:
它确实有效。你认为我应该删除这个问题吗?

一个对我有效的替代解决方案: (注:我正在使用FedoraLinux,Matlab2017a。不确定它是否能以一种简单的方式为windows用户工作)

以下是我用来获取数据的Matlab命令行:

AllDataURL=urlread('https://bittrex.com/api/v1.1/public/getmarketsummaries');
已成功替换为以下命令行:

[status,AllDataURL]=dos('curl https://bittrex.com/api/v1.1/public/getmarketsummaries');
尽管变量“status”的结果值为零,但变量AllDataURL中的数据与使用urlread时的前一个数据完全相同


希望对您有所帮助。

感谢您没有删除,这可能是重复的!