SimBiology getConfigSet does not recognise model object
Mostra commenti meno recenti
Hi,
I am trying to change the simulation settings of my Simbiology model through a Matlab script. I use the following code:
modelObj=sbioloadproject('RandomNetwork_5')
cs = getConfigSet(modelObj,'active');
However I get the following error:
Error using getConfigSet (line 10)
The first input to get_param must be of type 'double', 'char' or 'cell'.
I have no idea of what might be going wrong here and would appreaciate some help. I attach the .sbproj file in case it is of any use.
Many thanks,
Alvaro
Risposta accettata
Più risposte (1)
Jeremy Huard
il 28 Giu 2019
Hi Alvaro,
sbioloadproject will return a struct that contains your model(s).
This should work:
s = sbioloadproject('RandomNetwork_5');
modelObj = s.m1;
cs = getConfigSet(modelObj,'active');
Best,
Jérémy
Community
Più risposte nel SimBiology Community
Categorie
Scopri di più su Scan Parameter Ranges in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!