How to give time in hours in simulink?

42 views (last 30 days)
Hello Everyone
As we know that Simulink runs simulation in seconds but I have a model which I need to run for many days. I wanted to give parameters values on hourly basis in my model as is given in my data but I know that Simulink runs simulation in seconds so any suggestions that How can I give these values in simulink input. I am attaching the image that shows nature of data. I hope you guys will get sense of my question from this data. Time here is in hours so every value
Muhammad Saqlain Haider
Muhammad Saqlain Haider on 14 Aug 2020
Probably you are right but I have doubt on it

Sign in to comment.

Answers (1)

Jonas on 14 Aug 2020
Can you set the sampling time of your model to 3600, such that it calculates once every hour?
Walter Roberson
Walter Roberson on 16 Aug 2020
The idea is that during initialization you could replace the spreadsheet with a different one that had the time multiplied.

Sign in to comment.





Community Treasure Hunt

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

Start Hunting!

Translated by