Skip to content

Commit

Permalink
mention syntax for accessing discrete-time vars from sol
Browse files Browse the repository at this point in the history
  • Loading branch information
baggepinnen committed Jul 3, 2024
1 parent e77fb1d commit 416c366
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/src/SampledData.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,11 @@ ud2 ~ kp * (Sample(dt2)(r) - yd2)
`yd1` and `ud1` belong to the same clock which ticks with an interval of `dt1`, while `yd2` and `ud2` belong to a different clock which ticks with an interval of `dt2`. The two clocks are *not synchronized*, i.e., they are not *guaranteed* to tick at the same point in time, even if one tick interval is a rational multiple of the other. Mechanisms for synchronization of clocks are not yet implemented.

## Accessing discrete-time variables in the solution
Discrete-time variables can be accessed with the syntax
```julia
sol[var]
```


## A complete example

Expand Down

0 comments on commit 416c366

Please sign in to comment.