安装Matlab工具箱的一些注意事项

安装:

 

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 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
解决??? XML-file failed validation against schema located in: D:\Program Files\MATLAB\R2007b\sys\namespace\info\v1\info.xsd XML-file name: d:\program files\matlab\r2007b\toolbox\hosa_d\hosa\info.xml To retest the XML-file against the schema, call the following java method: com.mathworks.xml.XMLValidator.validate(... 'd:\program files\matlab\r2007b\toolbox\hosa_d\hosa\info.xml',... 'D:\Program Files\MATLAB\R2007b\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. 运行hosaver: Warning: Could not find an exact (case-sensitive) match for 'hosaver'. D:\Program Files\MATLAB\R2007b\toolbox\hosa_d\hosa\HOSAVER.M is a case-insensitive match and will be used instead. You can improve the performance of your code by using exact name matches and we therefore recommend that you update your usage accordingly. Alternatively, you can disable this warning using warning('off','MATLAB:dispatcher:InexactMatch'). Higher-Order Spectral Analysis Toolbox. Version 2.0.3 (R12 compliant) 27 Dec 2000 安装原版工具箱之所以出现问题是因为没有将文件名全部改成小写,无法运行hosademo是因为缺少choices.m文件,参考http://cn.mathworks.com/matlabcentral/fileexchange/3013-hosa-higher-order-spectral-analysis-toolbox。本资源是整理后的工具箱,直接安装就可使用,运行hosaver显示成功安装信息,运行hosademo查看示例。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值