Finding non-constant species in Simbiology Object

1 回表示 (過去 30 日間)
Deepa Maheshvare
Deepa Maheshvare 2019 年 4 月 29 日
回答済み: Jeremy Huard 2019 年 4 月 29 日
I'm reading an sbml file to create a Simbiology object
modelObj = sbmlimport('File.xml');
I'd like to see the species that are non-constant.
I'm using the following line of code to obtain non-constant species
VariableSpecies = sbioselect(modelObj,'Where','Constant*','==',false)
The output is a function handle. I am not sure how to display the names of the species.
Any suggestions?

採用された回答

Jeremy Huard
Jeremy Huard 2019 年 4 月 29 日
What you get is not a function handle but an heterogenous array of SimBiology objects. This array contains a mix of different component types like species, parameters or potentially compartments.
If this is what you want, you can get their names with
names = get(VariableSpecies, 'Name')
But if you only wanted species (not parameters nor compartments), you can get them like this:
speciesObj = sbioselect(modelObj, 'Type', 'Species','Where','Constant','==',false)
names = get(speciesObj, 'Name')

その他の回答 (0 件)

コミュニティ

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

カテゴリ

Help Center および File ExchangeImport Data についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by