Model Analyzer: view program code does not work (nothing happens)
이전 댓글 표시
I have issues with the followig error when running Model Analyzer:
Severity Message
error Unrecognized function or variable 'dosesForFit'.
So I am trying to check the code by right clicking on the Program name in Project browser and clicking on "View Program Code ..." but nothing happens.
Ideas?
답변 (1개)
Christopher Sarkizi
2022년 7월 29일
0 개 추천
댓글 수: 6
Florian Augustin
2022년 7월 29일
Hi Christopher,
Those issues look like bugs that might be related to each other. To the first issue regarding the unknown variable 'dosesForFit': I assume you are working with a Fit program, possibly switching to and from a Group Simulation program? I tried a couple workflows in this area, but I have not been able to reproduce this issue so far. Can you share the steps that lead to this error message?
The error message you are seeing when loading the project may be related to loading of plots. Is the project opening at all? If so, you could try deleting the plots in the project to see if the load error disappears. I recommend making a separate copy of the sbproj file, just to make sure you are not loosing any data.
It would be helpful if you could share your SimBiology project, but I know that this is not always possible. If you are only able to share information in a less public space than MATLAB Answers, please contact our Technical Support. If you do, please reference this post here in your message.
Thank you,
Florian
Christopher Sarkizi
2022년 7월 29일
Florian Augustin
2022년 7월 29일
Hi Christopher,
Thank you for sharing this additional information. It is possible that the bug you are seeing is already fixed. You tagged MATLAB version R2022a as the release you are working with, have you already installed the latest Update 4? This update contains a fix for the VARIANT AND DOSE SETUP section in the Fit program. If you haven't already, can you try installing this update? The update can be installed by clicking on the little bell icon in the top right corner of the main MATLAB window. Please let me know if this does not resolve the issue.
Best regards,
Florian
Christopher Sarkizi
2022년 8월 3일
Arthur Goldsipe
2022년 8월 3일
편집: Arthur Goldsipe
2022년 8월 3일
Hi Chris,
You can import model components from Excel spreadsheets. Here's a link to instructions on how to do that for variants and doses. But other components work similarly.
Unfortunately, there's not currently any way to import initial values or bounds into the table. I'll add that to our list of enhancement requests.
Yes, you can export your parameter estimates to a variant. (Right-click on the results and select "Create Variant from Estimated Parameter Values...") Then, you can either commit that variant to the model to make those your new default initial conditions for simulations. Or you can include that variant in specific simulations if you don't want those to be your new defaults. You can also confirm that variants are applied as expected to a particular simulation program by inspecting your model's intiial conditions in the Model tab of the browser. (See here for an example.)
-Arthur
Christopher Sarkizi
2022년 8월 4일
커뮤니티
더 많은 답변 보기: SimBiology Community
카테고리
도움말 센터 및 File Exchange에서 Import Data에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!