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!