How can I get species B = cummax(species A) in SimBiology?
이전 댓글 표시
I have a species which will change in a bell shape (starts decreasing after monotonically rising to a peak) over time and I was wondering how I can calculate a parameter (or species) value which is equal to cummax(species) every time step in SimBiology Desktop?
For instance, B = cummax(A). However, A is an instantaneous species value whose size is equal to 1, but in order to calculate cumulative maximal value of A, I need to store a vector of A as far as I know.
Many thanks!
답변 (1개)
Arthur Goldsipe
2014년 12월 24일
Hi Dooyoung,
In SimBiology, you cannot create a species or parameter that is a vector. You can however analyze a simulation after it has finished to determine the cumulative maximum of a species (cummax). If you have the results stored in a SimData object named 'sd', you can create a vector of the cumulative maximum of A as follows:
[time, A] = selectbyname(sd);
B = cummax(A);
댓글 수: 1
Dooyoung Lee
2015년 1월 5일
편집: Dooyoung Lee
2015년 1월 5일
커뮤니티
더 많은 답변 보기: 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!