webread Error "Expected input to be a vector"

2 ビュー (過去 30 日間)
Emily
Emily 2018 年 5 月 3 日
編集済み: Emily 2018 年 8 月 8 日
Hi, I am getting an error when I use webread, but only on certain machines and in certain versions. What other things should I check?
I get this problem with Windows 10, Matlab R2017b, Windows 7 Matlab R2017b and R2018a
url = 'http://www.mathworks.com/matlabcentral/fileexchange';
searchTerm = 'sensor-data-acquisition';
html = webread(url,'term',searchTerm)
Error using webread (line 119)
Expected input to be a vector.
But it succeeds with Windows 10, Matlab R2018a
url = 'http://www.mathworks.com/matlabcentral/fileexchange';
searchTerm = 'sensor-data-acquisition';
html = webread(url,'term',searchTerm)}
html =
'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge"/> ... }
end
  4 件のコメント
Maurice
Maurice 2018 年 5 月 14 日
I have just solved my own problem ... in my case, I had an old version of strjoin.m in my path above the newer R2018b version ... I removed the offending version from the path and it now works for me ... perhaps you have a similar problem? Good luck ...
Emily
Emily 2018 年 8 月 8 日
編集済み: Emily 2018 年 8 月 8 日
It turned out to work on my Linux box. I guess I must have some conflicting script in my PC path that I haven't found yet. I'll look at strjoin. Thanks for the suggestion!

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeLanguage Fundamentals についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by