MATLAB: How to fix this error in SImbiology

MATLABSimBiology

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. I would like to just start editing code in Matlab, and to do so, I need to load it in Matlab. But every time 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? How can I fix this?

Best Answer

You should be able to load the project on the MATLAB command line by typing:
sbioloadproject('insglucagonfinal.sbproj')
This should load the model as a variable called m1 on the MATLAB workspace.
You should use the path to the project if the project is not in your current working directory. eg:
sbioloadproject('C:\Users\ajax\Desktop\insglucagonfinal.sbproj')