Getting data into MATLAB from HTTPS

前端 未结 2 375
伪装坚强ぢ
伪装坚强ぢ 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.

提交回复
热议问题