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

2 次查看(过去 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

采纳的回答

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