Borrar filtros
Borrar filtros

Why will my SimBiology model not run?

1 visualización (últimos 30 días)
tash7827
tash7827 el 4 de Ag. de 2016
Editada: Vijay el 4 de Ag. de 2016
I am working on SimBiology, and am trying to run a simulation, but it won't run because there are apparently some unitless objects ("Units are not defined for some model components..."), but when I ask what they are :
unitlessObjects = sbioselect(sbiomodel('Glucose-Insulin System'), '*Units', '')
this is what comes:
unitlessObjects = []
So if there are no unitless objects, why is that error still coming up?
  1 comentario
tash7827
tash7827 el 4 de Ag. de 2016
update: i tested the 'sbioselect' code, and it didn't work. Any ideas why? I called the model correctly, right?
sbioloadproject('insglucagonfinal.sbproj','m1')

Iniciar sesión para comentar.

Respuestas (1)

Vijay
Vijay el 4 de Ag. de 2016
Editada: Vijay el 4 de Ag. de 2016
The sbioselect statement you are using is correct, but the inputs to it are wrong.
sbiomodel creates a new model with the given name. So when you try this:
unitlessObjects = sbioselect(sbiomodel('Glucose-Insulin System'), '*Units', '')
SimBiology will create a new model with name Glucose-Insulin System and search for unitless objects inside this newly created empty model.
If you are looking to search within an existing model. You can do this in 2 steps.
% Load the model into variable m1.
sbioloadproject('insglucagonfinal.sbproj','m1')
% Run the sbioselect query on model m1.
unitlessObjects = sbioselect(m1, '*Units', '')

Comunidades de usuarios

Más respuestas en  SimBiology Community

Categorías

Más información sobre Extend Modeling Environment en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by