我有下一個網址:
https ://www.banxico.org.mx/SieInternet/consultarDirectorioInternetAction.do?accion=consultarSeries&locale=es&version=3&anoInicial=1996&anoFinal=2099&tipoInformacion=1,1&formatoHorizo??ntal=false&metadatosWeb=true&series=SI744&formatoXLS.y=10我可以使用此表獲取 Excel 檔案:
我嘗試使用的MME 價格urlread
,但他們沒有獲取資料。給出這個輸出:webread 的輸出
我怎樣才能正確地獲取資料?我正在使用matlab 2021a。webread
readtable
webread
uj5u.com熱心網友回復:
如果您結合使用函式 urlwrite 和 readtable 應該可以作業。
例子。
url = 'https://www.banxico.org.mx/SieInternet/consultarDirectorioInternetAction.do?accion=consultarSeries&locale=es&version=3&anoInicial=1996&anoFinal=2099&tipoInformacion=1,1&formatoHorizontal=false&metadatosWeb=true&series=SI744&formatoXLS.y=10';
fileName = 'file.xlsx';
urlwrite(url, fileName);
T = readtable(fileName,'Range','A18:B40');
轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/507418.html