How to use the 'exist' function for a SimBiology built-in function?
이전 댓글 표시
SimBiology has a kinetic law built-in called 'MassAction'. I want to use 'exists' to detect whether it is in there or not (then I'll use it in an if formula). Simply using 'exists('MassAction')' does not work as it gives a negative even though I know it is there. Does anybody know how I can get this to work?
Thanks
채택된 답변
추가 답변 (1개)
Arthur Goldsipe
2015년 1월 8일
0 개 추천
Hi Ciaran
The MassAction kinetic law is always included in SimBiology, so you can always use it in a SimBiology model. It's also possible to search for or verify the existence of a built-in or user-defined kinetic law. If you can clarify how/why you need that information to use it in a formula, then someone can show you how to get that information if it's really necessary.
-Arthur
댓글 수: 2
Ciaran
2015년 1월 8일
Arthur Goldsipe
2015년 1월 8일
Ok, that makes sense. I'll add a new answer that describes a couple of ways to do this.
커뮤니티
더 많은 답변 보기: SimBiology Community
카테고리
도움말 센터 및 File Exchange에서 Extend Modeling Environment에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!