Matlab errors when attempting to publish
显示 更早的评论
So i get the following error when trying to publish (regardless of settings, html, pdf, etc)
I'm using it on a mac, 2013b
No method 'createTextNode' with matching signature found for class
'org.apache.xerces.dom.DocumentImpl'.
Error in m2mxdom>createDom (line 53)
newTextNode = dom.createTextNode(matlabVersion.Version);
Error in m2mxdom (line 32)
dom = createDom;
Error in publish (line 143)
[dom,cellBoundaries] = m2mxdom(code);
Error in mdbpublish (line 56)
outputPath = publish(file, options);
Error using open (line 69)
NAME must contain a single string.
回答(1 个)
Sean de Wolski
2014-1-17
This error can be seen if:
v = ver('matlab')
Returns a structure array instead of a single structure. This can happen if you have a third party toolbox installed in a directory named "matlab". In that case rename the directory and update your matlabpath accordingly.
7 个评论
Travis
2014-1-17
Sean de Wolski
2014-1-17
It's hard to say without seeing it. Look at the two elements in the structure and see what the other is.
Travis
2014-1-17
Sean de Wolski
2014-1-17
Then look at your path:
>>path
It will probably be one of the folders on the top.
Travis
2014-1-29
Sean de Wolski
2014-1-30
You could just try the big hammer approach which I would expect to work:
restoredefaultpath;
rehash toolboxcache;
savepath
If that does not work, contact technical support and point them to this question.
Daniel Shanks
2014-1-31
Hi, I have the same error when I try to publish code. I did some of the steps you mentioned above and determined that the MATLAB support package for Arduino is returned along with the matlab version when ver('matlab') is called. I tried your 'big hammer approach' and it did not work. Any advice on how to remove this without causing other damage?? Also my help window is formatted incorrectly, which I believe is a consequence of the publish function not running.
Thanks!
类别
在 帮助中心 和 File Exchange 中查找有关 MATLAB Report Generator 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!