How do I load the Simbiology project onto Matlab so I can edit the code?

4 views (last 30 days)
What is wrong with this?
sbioloadproject('ins+glucagon.sbproj')
Thanks so much! Sorry this is such a newbie question, but I'm really confused.
Also, is there any other standard opening code for when we open Simbiology projects in Matlab?

Accepted Answer

Arthur Goldsipe
Arthur Goldsipe on 26 Jul 2016
The command you typed loaded the project into the MATLAB workspace. The model is usually stored in a variable called m1. You can edit the model using this variable.
However, if you are new to SimBiology, I recommend opening the project in the SimBiology desktop. You can open a project in the desktop from the command line like this: simbiology('ins+glucagon.sbproj')
You can also open projects directly within the SimBiology Desktop's graphical interface by clicking on the open button in the toolstrip. And you can open the SimBiology desktop either via the simbiology command or by clicking on the SimBiology App icon in the Apps on the MATLAB Toolstrip.
  2 Comments
tash7827
tash7827 on 27 Jul 2016
Hi, I already edited the model on the Simbiology desktop, but now I would like to write some code on Matlab so I can get graphs and things. But everytime I try, I get this:
>> insglucagon
Error using sbioloadproject (line 66)
Unable to read file 'insglucagonfinal.sbproj': No such file or folder.
Error in insglucagon (line 1)
sbioloadproject('insglucagonfinal', 'm1') %load it
So what should I do?
Arthur Goldsipe
Arthur Goldsipe on 27 Jul 2016
This is the correct syntax for loading a SimBiology project from the command line. It sounds like the sbproj file is not in your current directory.

Sign in to comment.

More Answers (0)

Communities

More Answers in the  SimBiology Community

Categories

Find more on Extend Modeling Environment in Help Center and File Exchange

Tags

Products

Community Treasure Hunt

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

Start Hunting!