What causes "Error in publish"?

17 ビュー (過去 30 日間)
Andrew Afanasyev
Andrew Afanasyev 2020 年 2 月 19 日
回答済み: Sai Bhargav Avula 2020 年 3 月 26 日
Getting this error when trying to publish (same error for any *.m file; was able to publish earlier):
Error using rand
Size inputs must be numeric.
Error in ver (line 12)
yv = rand(num,1);
Error in m2mxdom>createDom (line 51)
matlabVersion = ver('MATLAB');
Error in m2mxdom (line 31)
dom = createDom;
Error in publish
Error in mdbpublish (line 55)
outputPath = publish(file, options);
Error using open (line 51)
NAME must contain a single character vector.
>>
Could you tell me what is the issue? I tried to reinstall the product. Still getting the error.

回答 (1 件)

Sai Bhargav Avula
Sai Bhargav Avula 2020 年 3 月 26 日
Hi,
Try the following commands and rerun your program
restoredefaultpath;
rehash toolboxcache;
savepath
Hope this helps!

カテゴリ

Help Center および File ExchangeIntroduction to Installation and Licensing についてさらに検索

製品


リリース

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by