Error in loading an Open Example
14 views (last 30 days)
Show older comments
I have been trying to load the following code which then opens up a Simulink Model:
openExample('autoblks/HEVP0ReferenceApplicationExample')
However, when I hit enter, I am encountering the following issue:
Error using matlab.internal.examples.componentExamplesDir
Invalid argument "autoblks".
Error in findExample (line 11)
componentExamplesDir = matlab.internal.examples.componentExamplesDir(component);
Error in openExample (line 30)
metadata = findExample(exampleId);
I am not sure what this is about and no one else seems to have a problem like this. All help is appreciated.
0 Comments
Answers (1)
Cris LaPierre
on 29 Mar 2023
Run the command "ver" in your Command Window and verify that you have Powertrain Blockset and Simscape installed. If they are not and are included in your license, you can use the Add-Ons Explorer to install them.
cd(setupExample('autoblks/HEVP0ReferenceApplicationExample'));helpersetuphevp0
See Also
Categories
Find more on Powertrain Blockset in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!