フィルターのクリア

How do I fix this error in SImbiology?

2 ビュー (過去 30 日間)
tash7827
tash7827 2016 年 7 月 27 日
回答済み: Arthur Goldsipe 2016 年 7 月 27 日
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?

採用された回答

Vijay
Vijay 2016 年 7 月 27 日
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')

その他の回答 (1 件)

Arthur Goldsipe
Arthur Goldsipe 2016 年 7 月 27 日
You're referencing files and projects that we don't have access to. In the future, please consider attaching any files that could be used to reproduce the problem.
However, I have a pretty good guess about what's going on in this case. Note the following in the error message: "No such file or folder."
If the command you use to open the project is sbioloadproject('insglucagonfinal', 'm1'), then you need to make sure that there's a project file insglucagonfinal.sbproj in your current directory. Otherwise, you need to specify the full path to the file when opening it using sbioloadproject. For example, on Windows you might use something like this:
sbioloadproject('C:\TEMP\insglucagonfinal.sbproj', 'm1')

コミュニティ

その他の回答  SimBiology コミュニティ

カテゴリ

Help Center および File ExchangeExtend Modeling Environment についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by