How can I copy Onramp model to my project?

1 次查看(过去 30 天)
경민 박
경민 박2021-10-22
回答: Rishabh Singh ,2021-11-2
[Stateflow Onramp: Chapter11: Project-Robotic Vacuum Driving Modes]
If I want to use models in Onramp courses, what should I do?
I tried by copying whole model (except Assessment Blocks) and saving all variables from the workspace.
But, when I click the run button, the error comes out.
error is like below:
Error in 'onramp robotic vacuum/MATLAB Function' (line 7)
oH = evalin('base','orientationHandle');
  2 个评论

请先登录,再进行评论。

回答(1 个)

Rishabh Singh
Rishabh Singh 2021-11-2
You can "save as" the model and save it to use it. But you have to first complete the "chapter" to save the complete model. Any workspace variable loading functions/ startup functions should also be saved in the similar fashion.
Hope this helps

产品


版本

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by