【发布时间】:2019-08-15 08:50:36
【问题描述】:
MATLAB 找不到工具箱的类 - 我该怎么办?
基本上我想使用工具箱库slmetric的Width类,但是MATLAB找不到该库。如何正确解决该问题?
>> misraWidget.setWidths(slmetric.dashboard.Width.Medium);
Undefined variable "slmetric" or class "slmetric.dashboard.Width.Medium".
或者
>> getWidths(misraWidget)
Error using slmetric.dashboard.CustomWidget/getWidths
The class 'slmetric.dashboard.Width' contains a parse error, cannot be found on MATLAB's
search path, or is shadowed by another file with the same name.
我尝试使用“which”来更好地理解正在发生的事情并比较 Group 的结果,这意味着存在 slmetric.* 和 Width 的结果:
>> which slmetric.dashboard.Group
slmetric.dashboard.Group is a built-in method % slmetric.dashboard.Group constructor
>> which slmetric.dashboard.Width
'slmetric.dashboard.Width' not found.
>> which slmetric.dashboard.Width.Medium
'slmetric.dashboard.Width.Medium' not found.
我正在尝试关注 this tutorial on how to customize your metrics dashboard 的工具箱 Simulink Check。我以Simulink Bounce Demo 为例。如果有人可以向我解释如何在 MATLAB 中解决这样的问题,我将不胜感激。 MATLAB 中的“构建/链接”被隐藏起来了,所以我真的不明白如何处理这些事情。我通过搜索找到的最好的东西是“which”命令。
【问题讨论】: