MATLAB 'copy command' has unrecognised function or variable

4 views (last 30 days)
I am looking at 'Marine Power system deployment ti HIL'
I am trying to explore the model on simscape but the function to open the model that is copied from the 'copy command' option, once run in matlab script produces the error- 'Unrecognized function or variable 'ee_marine_power_system'.'
it looks as if the command to open the model is incorrect on the mathworks website.
does anyone have the correct command to open the model from the link above?
thanks,
Aiden

Accepted Answer

Steven Lord
Steven Lord on 18 Jan 2023
The command is correct. I just tried it and it opened the example as I expected.
From the Release Notes for release R2022b, "Marine Power System Deployment to HIL" is a new example in this release. You're using release R2022a which predates the introduction of this example. That's why you can't open it. You'll need to upgrade to release R2022b (which as I type this is the most recent release) or later (if you're reading this in the future after release R2023a or later releases have been released) to open it.

More Answers (0)

Products


Release

R2022a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!