Duplicate model within a project

조회 수: 2 (최근 30일)
Natalia Riva
Natalia Riva 2023년 4월 21일
댓글: Priya Moorthy 2023년 5월 5일
Dear all,
I have a model developed with Simbiology Model Builder 6.4 using Matlab 2022b. Due to some constrains, we need to go down to Matlab 2020b (Simbiology Model Builder v6.0). I would like to duplicate the model within the project to continue with the development, but apparently that option is no longer available from the project window.
Any idea on how I could duplicate my model now?
Thanks a lot for your support,
Best,
Natalia

답변 (1개)

Jeremy Huard
Jeremy Huard 2023년 4월 21일
편집: Jeremy Huard 2023년 4월 21일
Hi Natalia,
the 'Duplicate model' option in the conctext menu of the project view is indeed not yet available in R2020b.
However, you can achieve it as follows:
  • save your project in a .sbproj file
  • keep the project open in Model Builder or load it if you have already closed it
  • In the toolstrip menu of Model Builder, choose 'Model' 'Load Model from file', select your sbproj file
  • Choose the model to duplicate in the model list. SimBiology will add the model to your project after adding '_1' to the name since a model with the same name already exists in the project
Best regards,
Jérémy
  댓글 수: 3
Jeremy Huard
Jeremy Huard 2023년 4월 21일
Hi Natalia,
glad it worked!
For completeness, I would like to remind you that SimBiology is not forward-compatible.
Which means that projects created in a newer might not load correctly in an older version. The same applies when importing models only from newer projects if the model created in the newer version contains components that didn't exist in the oder version (for example Observables).
It could work just fine but I recommend to check that everyting is fine.
So, to create your 20a project I recommend to import models from the newer project with the method I described above.
Best regards,
Jérémy
Priya Moorthy
Priya Moorthy 2023년 5월 5일
Hi, Natalia,
Just to follow up on Jérémy's reply:
SimBiology projects do not support forward incompatibility, and there is a bug in the current version of the apps that may allow you to loading projects saved in a later version of our app without receiving any warning or error message. In this case, you may end up with an inconsistent project format that could cause unexpected behavior or data loss down the line, even if the project appears to load correctly, so we caution you against trying to load 22b projects in 20b.
You can export just the models from the app to the command line in R2022b, save them to a mat file and load them in earlier releases of MATLAB through 19b.
Priya

댓글을 달려면 로그인하십시오.

커뮤니티

더 많은 답변 보기:  SimBiology Community

카테고리

Help CenterFile Exchange에서 Extend Modeling Environment에 대해 자세히 알아보기

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by