安装:
1、 如果是Matlab安装光盘上的工具箱,重新执行安装程序,选中即可。
2 、如果是单独下载的工具箱,一般情况下仅需要把新的工具箱解压到某个目录;
2、1在matlab的file下面的set path把它加上。
2、2 把路径加进去后在file→Preferences→General的Toolbox Path Caching里点击update Toolbox Path Cache更新一下。
2、3 用which newtoolbox_command.m来检验是否可以访问。如果能够显示新设置的路径,则表明该工具箱可以使用了。
问题:
??? XML-file failed validation against schema located in:
C:/Program Files/MATLAB/R2008a/sys/namespace/info/v1/info.xsd
XML-file name: c:/program files/matlab/r2008a/toolbox/natinst/daq/info.xml
To retest the XML-file against the schema, call the following java method:
com.mathworks.xml.XMLValidator.validate(...
'c:/program files/matlab/r2008a/toolbox/natinst/daq/info.xml',...
'C:/Program Files/MATLAB/R2008a/sys/namespace/info/v1/info.xsd', true)
Errors:
org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element
'area'. One of '{MathWorksID, type}' is expected.
解决:
Edit the info.XML file at the path indicated in MATLAB's err message. First lines may look like this:
<productinfo>
<matlabrelease>12</matlabrelease>
<name>NI-DAQmx Tools</name>
<area>toolbox</area>
<icon>$toolbox/natinst/daq/ni_eagle.gif</icon>
That 4th line, which tries to set the 'area' to be 'toolbox' is confusing MATLAB. Must set 'type' not 'area'. Change that line to this:
<type>toolbox</type>
P.S.
Only edit the NI 'info.XML' Edit one with path like:
c:/program files/matlab/r2008a/toolbox/natinst/daq/info.xml
Not the one in /toolbox/daq/daq