matlab toolbox 中添加HOSA工具箱

首先,查明matlab安装地址;
将HOSA工具箱解压,将hosa文件夹拷贝到toolbox文件夹中;
上述步骤对应于以下命令

matlabroot
addpath C:\Program Files\Polyspace\R2020a\toolbox\hosa
savepath

执行第二条语句时,可能会出现如下问题:通常,错误是由 XML 标记顺序不正确所致。请通过更新 info.xml 文件内容来更正错误,按照 MATLAB 帮助文档中的指导进行操作。
执行以下语句:

addpath(genpath(‘C:\Program Files\Polyspace\R2020a\toolbox\hosa’))

该语句含义为将目录下所有的子文件夹都添加到路径中。

查看是否安装完成,找一个hosa文件夹中的M文件:

which DOA.m

如果出现正确路径,则为安装成功

如需工具包,评论区留邮箱。

解决??? 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查看示例。
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值