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

2 views (last 30 days)
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

Accepted Answer

Arthur Goldsipe
Arthur Goldsipe on 3 Oct 2023
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

More Answers (0)

Categories

Find more on Scan Parameter Ranges in Help Center and File Exchange

Products


Release

R2022a

Community Treasure Hunt

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

Start Hunting!