Getting data into MATLAB from HTTPS

前端 未结 2 363
伪装坚强ぢ
伪装坚强ぢ 2020-12-21 04:51

Anybody know if it\'s possible?

I\'m trying to get the data by using the following code

url = \'https://cgwb.nci.nih.gov/cgi-bin/hgTracks\';
params =         


        
相关标签:
2条回答
  • 2020-12-21 05:16

    An alternative solution that worked for me: (ps.: I'm using Fedora Linux, Matlab 2017a. Not sure if it will work in a simply way for windows users).

    The following command line in Matlab that I used to get the data as:

    AllDataURL=urlread('https://bittrex.com/api/v1.1/public/getmarketsummaries');
    

    was successfully replaced by the following command line:

    [status,AllDataURL]=dos('curl https://bittrex.com/api/v1.1/public/getmarketsummaries');
    

    Although the result value for the variable 'status' is zero, the data into variable AllDataURL is exactly the same as the previous one when using urlread.

    Hope it helps.

    0 讨论(0)
  • 2020-12-21 05:25

    Sorry, I found the answer on SO:

    Handling an invalid security certificate using MATLAB's urlread command

    Will test and remove if needed.

    UPDATE:

    It really works. DO you think I should delete the question?

    0 讨论(0)
提交回复
热议问题