how can I calculate the current simulation time

1 view (last 30 days)
Anas Alahdab
Anas Alahdab on 24 Jan 2020
Answered: Walter Roberson on 27 Jan 2020
Hi there
I tried to understand what was in the picture but i cannot.
Therefore I try to ask if someone can explain me.
what was done here and what was used exactly.
LZ: it sould calculate the local time1.PNG
Formula:
LZ = s - 24.loor (s / 24)
S: simulation time = 8760 hours per year, corresponds to the number of
Hours a year
What is u? and why was used here.

Answers (2)

Nikhil Sonavane
Nikhil Sonavane on 27 Jan 2020
Can you explain the question in a more detailed manner and also attach a better resolution image

Walter Roberson
Walter Roberson on 27 Jan 2020
The Simulink clock block provides the current simulated time.

Products

Community Treasure Hunt

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

Start Hunting!