Change in simulation output with changing in the units of stop time
조회 수: 4 (최근 30일)
이전 댓글 표시
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
댓글 수: 0
채택된 답변
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
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Perform Sensitivity Analysis에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!