webread.m -- Too many input arguments

2 ビュー (過去 30 日間)
itsupport
itsupport 2016 年 10 月 18 日
コメント済み: stephan bohacek 2017 年 1 月 18 日
I am using MATLAB 2016B.
I have a webpage which I want to download the data from.
url = 'https://openfigi.com/search#!?search=CUSTOM&pageSize=100&page=1&filters=EXCH_CODE:..cme&simpleSearchString=S%26P500%20EMINI%20OPTN';
data = webread(url);
When i run this I get:
Error using webread (line 116)
Too many input arguments.
When I try
data = urlread(url);
The function clearly works as it's supposed to, however the response does not contain the data of interest.
Please can someone help me return the table data using matlab. thanks

回答 (2 件)

Sean de Wolski
Sean de Wolski 2016 年 10 月 18 日
編集済み: Sean de Wolski 2016 年 10 月 18 日
What you have for webread works fine for me in R2016b, Win7x64.
My guess is you're shadowing one of the functions that webread is calling.
  1 件のコメント
itsupport
itsupport 2016 年 10 月 18 日
編集済み: itsupport 2016 年 10 月 18 日
Thanks Sean.
I dont think thats the case. This is a fresh install of matlab on a new PC. How can I check to be sure?
When I try again with the same website and the BBC website, I get an error for the first and no error for the BBC one.
Can you copy the output from your successful call here please?
>> webread('https://openfigi.com/search#!?search=CUSTOM&pageSize=100&page=1&filters=EXCH_CODE:..cme&simpleSearchString=S%26P500%20EMINI%20OPTN')
Error using webread (line 116)
Too many input arguments.
35 throwAsCaller(e)
K>> webread('http://www.bbc.co.uk/')
ans =
<!DOCTYPE html>
<!--[if lte IE 9]>
<html lang="en-GB" c

サインインしてコメントする。


itsupport
itsupport 2016 年 10 月 20 日
anyone able to help?
thank you
  1 件のコメント
stephan bohacek
stephan bohacek 2017 年 1 月 18 日
I have the exact same problem (same error message). But urlread works fine.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeWeb Services についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by