필터 지우기
필터 지우기

How to load simbiology project object and children from m file?

조회 수: 2 (최근 30일)
Zetty  Zakaria
Zetty Zakaria 2014년 6월 14일
답변: Hideki Oka 2016년 7월 12일
Hi, I am so new to matlab. How to load the simbiology project objects and children into matlab workspace? I have tried to use sbioloadproject (filename, modelObj); cs = getconfigset(modelObj); but it just load the model object but not the properties inside the project.
What I need now is to automatically run the *.m file that could load and run the *.sbproj and finally obtain the graph result from the *.sbproj without manually run the *.sbproj file. Due to some none imported properties in the *.sbproj into workspace, the graph plotting had given an error, which make the graph could not be plotted. Hope somebody could show the correct way of doing it. Thanks.
  댓글 수: 2
Arthur Goldsipe
Arthur Goldsipe 2014년 6월 15일
Hi Zetty,
It's difficult for us to help you without more information. What version of MATLAB are you using? What is the exact error you are getting? Can you attach the files that you are talking about (the .m and .sbproj files)?
-Arthur
Zetty  Zakaria
Zetty Zakaria 2014년 6월 15일
Hi Arthur. I am using MATLAB R2013b. The error received is 'undefined functions or variable t' where the 't' is a variable that is available in the .sbproj file. This is the link to the dropbox containing the .m and .sbproj files. I don't know what is wrong with it. Really hope you could help. Thanks!

댓글을 달려면 로그인하십시오.

채택된 답변

Ingrid Tigges
Ingrid Tigges 2014년 6월 16일
Hello Zetty,
in your code you are using the line
simData = sbiosimulate(m1, cs, Dose) ;
This way you create a SimData object which contains the simulation results. If you want to plot the results against time using this object, please use the "sbioplot" command
sbioplot(simData);
If you want to have the vector with time points and the matrix with the simulation results directly you can use the following syntax
[t, x, names] = sbiosimulate(m1, cs, Dose) ;
plot(t,x)
You can find further information regarding this topic here: web(fullfile(docroot, 'simbio/ref/sbiosimulate.html'))
  댓글 수: 4
Zetty  Zakaria
Zetty Zakaria 2014년 6월 18일
편집: Zetty Zakaria 2014년 6월 18일
Really?? I didn't know that. How to know the type of questions that we can ask the technical support?
Update: I just found the page. Will try to use that facility after this. You have been very helpful. Thanks for informing!
Ingrid Tigges
Ingrid Tigges 2014년 6월 19일
You are welcome. You need a license with current maintenance which many companies and universities have.

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Hideki Oka
Hideki Oka 2016년 7월 12일
Can I merge two model files into single unified model ?

커뮤니티

더 많은 답변 보기:  SimBiology Community

카테고리

Help CenterFile Exchange에서 Scan Parameter Ranges에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by