How to load simbiology project object and children from m file?
2 次查看(过去 30 天)
显示 更早的评论
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
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
采纳的回答
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 个评论
Ingrid Tigges
2014-6-19
You are welcome. You need a license with current maintenance which many companies and universities have.
更多回答(1 个)
社区
更多回答在 SimBiology Community
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Scan Parameter Ranges 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!