Unrecognized function or variable 'readstruct'

9 ビュー (過去 30 日間)
Hamed Jalali
Hamed Jalali 2022 年 5 月 15 日
回答済み: KALYAN ACHARJYA 2022 年 5 月 15 日
I implemented this sample code from Mathlab help:
url = "https://export.arxiv.org/oai2?verb=ListRecords" + ...
"&set=math" + ...
"&metadataPrefix=arXiv";
filename = fullfile(tempdir,"arxivData.xml");
options = weboptions('Timeout', 160);
websave(filename,url,options);
% Parse XML code.
data = readstruct(filename,"StructNodeName","ListRecords");
After running the code, MATLAB shows this error:
Unrecognized function or variable 'readstruct'.
readstuct() is a predefined function in MATLAB and I can not understand why it says the function is unrecognized. The main source of this code can be found here: LINK . Does any one ahve an idea about this problem? I am using MATLAB R2019b .

採用された回答

KALYAN ACHARJYA
KALYAN ACHARJYA 2022 年 5 月 15 日
Reason may be: this function is Introduced in R2020b Matlab Version
Its works Matlab 2020b & later version only.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeText Files についてさらに検索

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by