필터 지우기
필터 지우기

Why will my SimBiology model not run?

조회 수: 4 (최근 30일)
tash7827
tash7827 2016년 8월 4일
편집: Vijay 2016년 8월 4일
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
tash7827
tash7827 2016년 8월 4일
update: i tested the 'sbioselect' code, and it didn't work. Any ideas why? I called the model correctly, right?
sbioloadproject('insglucagonfinal.sbproj','m1')

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

답변 (1개)

Vijay
Vijay 2016년 8월 4일
편집: Vijay 2016년 8월 4일
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', '')

커뮤니티

더 많은 답변 보기:  SimBiology Community

카테고리

Help CenterFile Exchange에서 Extend Modeling Environment에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by