How to compare equations of two simbiology models?

1 回表示 (過去 30 日間)
BK V
BK V 2021 年 10 月 22 日
回答済み: Jeremy Huard 2021 年 10 月 26 日
I need to compare two models of simbiology. Is there any direct way to compare the equations of the two models?
Any suggestion is appreciated.
Thank you
BV

回答 (1 件)

Jeremy Huard
Jeremy Huard 2021 年 10 月 26 日
Hi,
One way to compare the equations of two models is to load the models in the MATLAB workspace, generate the equations with getequations(), save these in files and use MATLAB's file comparison tool.
I have attached a function that automates this workflow for you.
You will need to load the models using sbioloadproject() and then call this function. This will open and compare the models equations in MATLAB's file compairon tool for you.
Please note that there are little safeguards, e.g. for when getequations errors. I suggest to verify your model with the method verify() or call getequations manually after loading your model into the MATLAB workspace to make sure equations are generated without issues
Best,
Jérémy

コミュニティ

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

カテゴリ

Help Center および File ExchangeExtend Modeling Environment についてさらに検索

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by