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
Sean de Wolski 2014년 1월 17일

1 개 추천

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
Travis 2014년 1월 17일
it does, in fact, return a structure array. Where do I go to rename the directory/update matlabpath?
Sean de Wolski
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.
1x2 struct array with fields:
Name
Version
Release
Date
is all that is returned?
Then look at your path:
>>path
It will probably be one of the folders on the top.
Travis
Travis 2014년 1월 29일
So there are several 'path's with a matlab folder:
Applications/MATLAB_R2013b.app/toolbox/matlab/demos /Applications/MATLAB_R2013b.app/toolbox/matlab/graph2d /Applications/MATLAB_R2013b.app/toolbox/matlab/graph3d /Applications/MATLAB_R2013b.app/toolbox/matlab/graphics /Applications/MATLAB_R2013b.app/toolbox/matlab/plottools /Applications/MATLAB_R2013b.app/toolbox/matlab/scribe /Applications/MATLAB_R2013b.app/toolbox/matlab/specgraph /Applications/MATLAB_R2013b.app/toolbox/matlab/uitools /Applications/MATLAB_R2013b.app/toolbox/local /Applications/MATLAB_R2013b.app/toolbox/matlab/optimfun /Applications/MATLAB_R2013b.app/toolbox/matlab/codetools /Applications/MATLAB_R2013b.app/toolbox/matlab/datafun /Applications/MATLAB_R2013b.app/toolbox/matlab/datamanager /Applications/MATLAB_R2013b.app/toolbox/matlab/datatypes /Applications/MATLAB_R2013b.app/toolbox/matlab/elfun /Applications/MATLAB_R2013b.app/toolbox/matlab/elmat /Applications/MATLAB_R2013b.app/toolbox/matlab/funfun /Applications/MATLAB_R2013b.app/toolbox/matlab/general /Applications/MATLAB_R2013b.app/toolbox/matlab/guide /Applications/MATLAB_R2013b.app/toolbox/matlab/helptools /Applications/MATLAB_R2013b.app/toolbox/matlab/iofun /Applications/MATLAB_R2013b.app/toolbox/matlab/lang /Applications/MATLAB_R2013b.app/toolbox/matlab/matfun /Applications/MATLAB_R2013b.app/toolbox/matlab/ops /Applications/MATLAB_R2013b.app/toolbox/matlab/polyfun /Applications/MATLAB_R2013b.app/toolbox/matlab/randfun /Applications/MATLAB_R2013b.app/toolbox/matlab/sparfun /Applications/MATLAB_R2013b.app/toolbox/matlab/specfun /Applications/MATLAB_R2013b.app/toolbox/matlab/strfun /Applications/MATLAB_R2013b.app/toolbox/matlab/timefun /Applications/MATLAB_R2013b.app/toolbox/matlab/verctrl /Applications/MATLAB_R2013b.app/toolbox/matlab/testframework
So I assume I just change "/matlab" to something like "/matlab1" for all paths. Correct?
Once I do this how do I update the matlabpath accordingly?
Thanks!
Travis
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
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에 대해 자세히 알아보기

태그

질문:

2014년 1월 17일

댓글:

2014년 1월 31일

Community Treasure Hunt

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

Start Hunting!

Translated by