How can I copy Onramp model to my project?

3 ビュー (過去 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 件のコメント
경민 박
경민 박 2021 年 10 月 25 日
Thank you very much!


回答 (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


Find more on Programmatic Model Editing 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!

Translated by