Change in simulation output with changing in the units of stop time

조회 수: 3 (최근 30일)
Day
Day 2023년 10월 2일
편집: Day 2024년 3월 5일
Hi,
I defined units for all parameters in my Smbiology model and the model runs simulations. The unit of time for all parameters is in day.
However, if I define the stop time to be equal to 250 day, the simulation result will be different than if I define the stop time to be equal to 6000 hour. The results of the two simulations should be the same, correct? How could I fix this?
Please consider that I turned on the UnitConversion in the setting.
Thanks

채택된 답변

Arthur Goldsipe
Arthur Goldsipe 2023년 10월 3일
If you have constructed your model correctly, I expect the results of the two simulations to be equivalent but not numerically identical. Here's what I mean. When you change the stop time form 250 day to 6000 hour, you will change the time units used for logging the simulation results. So, the results in the first simulation at a time of 1 (day) will correspond to the results in the second simulation at a time of 24 (hour).
If you still see a difference you don't understand, then you will likely need to share more details. If you can share your project and code, that would probably be the easiest way to help. If you are unable to share this information publicly on MATLAB Answers, could you share it with me privately or with MathWorks Technical Support?
-Arthur

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Scan Parameter Ranges에 대해 자세히 알아보기

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by