title: MATLAB cant find class from Simulink Check
body: <p>MATLAB cannot find the class of a toolbox - What do I do?</p>
  
  <p>Basically I want to use the <a href="https://mathworks.com/help/slcheck/ref/slmetric.dashboard.widget.getwidths.html" rel="nofollow noreferrer">Width</a> class of the toolbox library slmetric, but MATLAB cannot find the library. How do I properly troubleshoot that problem?</p>
  
  <pre><code>&gt;&gt; misraWidget.setWidths(slmetric.dashboard.Width.Medium);
  Undefined variable "slmetric" or class "slmetric.dashboard.Width.Medium".
  </code></pre>
  
  <p>Or</p>
  
  <pre><code>&gt;&gt; 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.
  </code></pre>
  
  <p>I tried to use "which" to understand better whats going on and compare the results for Group, which implies that slmetric.* is present and the results for Width:</p>
  
  <pre><code>&gt;&gt; which slmetric.dashboard.Group
  slmetric.dashboard.Group is a built-in method  % slmetric.dashboard.Group constructor
  &gt;&gt; which slmetric.dashboard.Width
  'slmetric.dashboard.Width' not found.
  &gt;&gt; which slmetric.dashboard.Width.Medium
  'slmetric.dashboard.Width.Medium' not found.
  </code></pre>
  
  <p>I'm trying to follow <a href="https://mathworks.com/help/slcheck/ug/customize-dashboard-layout-functionality.html" rel="nofollow noreferrer">this tutorial on how to customize your metrics dashboard</a> for the toolbox Simulink Check. I use the <a href="https://mathworks.com/help/simulink/slref/simulation-of-a-bouncing-ball.html" rel="nofollow noreferrer">Simulink Bounce Demo</a> as an example. I would appreciate it, if someone can explain to me how to generally solve such a problem in MATLAB. The "build/linking" in MATLAB is hidden away so I don't really understand how to tackle these kinds of things. The best thing I found via searching was the "which" command.</p>