Error using SimBiology model over command line

1 回表示 (過去 30 日間)
Yash Jawale
Yash Jawale 2019 年 8 月 19 日
回答済み: Arthur Goldsipe 2019 年 8 月 19 日
I have a model built in SimBiology, it works in SimBio GUI i.e. runs without error and live plots. But when I tried running same model with MATLAB command line it's giving empty result.
sbioloadproject('model.sbproj')
[time, x, names] = sbiosimulate(m1);
time, x, names are empty variables.
My quick analysis of problem,
In SimBio GUI I have set the AbsoluteToleranceStepSize to 1e-5, but that I cannot verify with getconfigset(m1) on command line/script. Since run fails in SimBio GUI if that value is set to default [].
Is there a way to set it in command line also, if that's the issue.

採用された回答

Arthur Goldsipe
Arthur Goldsipe 2019 年 8 月 19 日
Hi,
I would expect the setting you see for AbsoluteToleranceStepSize in the GUI to be the same as you see in the command line. If your model is in variable m1, you can confirm this with the following MATLAB code:
cs = getconfigset(m1)
cs.SolverOptions.AbsoluteToleranceStepSize

その他の回答 (0 件)

コミュニティ

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

カテゴリ

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

製品


リリース

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by