Reference to non-existent field 'mathworks'
이전 댓글 표시
I've been writing Matlab code that generates XML script. I haven't run into any problems until I try to bring data from another script into the XML writing one. I have researched the problem and tried their fixes, like replacing load() with importdata(), removing all clc and clear commands, etc. The error in particular occurs on the line
docNode = com.mathworks.xml.XMLUtils.createDocument('XMLName');
Matlab gives an error "Reference to non-existent field 'mathworks'". I can't seem to find any solutions that I haven't tried and don't know what else to do. If I try running the script without any data being imported it works without any problems. What could be blocking Matlab from being able to read its own XMLUtils files? I can answer any questions you have about the code itself, but cannot upload the code for security reasons.
댓글 수: 4
Geoff Hayes
2017년 2월 23일
Jake - which version of MATLAB are you using? I'm running R2014a on OS X, and when I run the following (in the command window)
>> methods view com.mathworks.xml.XMLUtils
I observe a list of all the methods for this class. What do you see when you try the same?
Jake Conley
2017년 2월 23일
Geoff Hayes
2017년 2월 23일
my bad - I should have looked more closely at what I pasted (there was some auto-correction and so the method is methodsview, one word)
>> methods view com.mathworks.xml.XMLUtils
Jake Conley
2017년 2월 23일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Historical Contests에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!