Skip to content

Commit 51b7cb5

Browse files
committed
doc: debug plant paramters in MTK example
1 parent 53c94fa commit 51b7cb5

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

docs/src/manual/mtk.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,12 +117,12 @@ Ts = 0.1
117117
model = setname!(NonLinModel(f!, h!, Ts, nu, nx, ny; p); u=vu, x=vx, y=vy)
118118
```
119119

120-
We also instantiate a plant model with a 25 % larger friction coefficient ``K``, which is
121-
the third element of `p`, as shown above:
120+
We also instantiate a plant model with a 25 % larger friction coefficient ``K``:
122121

123122
```@example 1
123+
i_K = findfirst(==("K"), string.(p_sym))
124124
p2 = copy(p)
125-
p2[3] = 1.25*p[3]
125+
p2[i_K] = 1.25*p[i_K]
126126
plant = setname!(NonLinModel(f!, h!, Ts, nu, nx, ny; p=p2), u=vu, x=vx, y=vy)
127127
```
128128

0 commit comments

Comments
 (0)