How to import a .asp url table into Matlab

3 次查看(过去 30 天)
Hi. I need to get into Matlab a table that appears in: http://www.sbs.gob.pe/app/stats/TC-Contable.asp. The web page lets you choose which date you want the data; but I must do it by clicking in the calendar icon. Is there a way to import the table (foreign exchange rates) and specify the date? So far I only found ways to import the raw data but no success in specifying the date. Thanks in advance!

回答(1 个)

Edson
Edson 2016-8-19
[UPDATE / CLARIFICATION], if you click on http://www.sbs.gob.pe/app/stats/tipodecambiocontablexls.asp?fec=18/08/2016, it will generate an excel file with the data as of 18/08/2016. I tried to use the matlab function webread without success:
url = 'http://www.sbs.gob.pe/app/stats/tipodecambiocontablexls.asp?fec=06/05/2016'; options = weboptions('ContentType','text','ArrayFormat','csv'); x=webread(url,options);

类别

Help CenterFile Exchange 中查找有关 Calendar 的更多信息

产品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by