Model Analyzer: view program code does not work (nothing happens)
Mostrar comentarios más antiguos
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?
Respuestas (1)
Christopher Sarkizi
el 29 de Jul. de 2022
0 votos
6 comentarios
Florian Augustin
el 29 de Jul. de 2022
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
el 29 de Jul. de 2022
Florian Augustin
el 29 de Jul. de 2022
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
el 3 de Ag. de 2022
Arthur Goldsipe
el 3 de Ag. de 2022
Editada: Arthur Goldsipe
el 3 de Ag. de 2022
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
el 4 de Ag. de 2022
Comunidades de usuarios
Más respuestas en SimBiology Community
Categorías
Más información sobre Import Data en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!