Skip to content

Commit c189302

Browse files
committed
change kwargs in example
1 parent 079457b commit c189302

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

docs/src/index.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,11 @@ but also using incomplete names, e.g., if `G` contains outputs `:y1, :y2, :y3, :
7171
s1[:y, :] # Prefix matching is used if no exact match is found.
7272
```
7373

74-
See [complicated-feedback example](https://github.com/JuliaControl/RobustAndOptimalControl.jl/blob/master/examples/complicated_feedback.jl) as well as the example under [Connecting systems together](@ref) below for additional examples.
74+
See the example under [Connecting systems together](@ref) below as well as [complicated-feedback example](https://github.com/JuliaControl/RobustAndOptimalControl.jl/blob/master/examples/complicated_feedback.jl).
7575

7676
## Connecting systems together
7777
Advanced interconnected systems can be created using the function [`connect`](@ref).
78-
See [complicated-feedback example](https://github.com/JuliaControl/RobustAndOptimalControl.jl/blob/master/examples/complicated_feedback.jl) as well as the following example:
78+
See the following example, as well as [complicated-feedback example](https://github.com/JuliaControl/RobustAndOptimalControl.jl/blob/master/examples/complicated_feedback.jl).
7979

8080
### Example
8181
The following complicated feedback interconnection
@@ -111,9 +111,10 @@ connections = [
111111
:uC => :uC
112112
:yR => :yR
113113
]
114-
w1 = [:uF] # External inputs
114+
external_inputs = [:uF]
115+
external_outputs = [:yP] # Optional, if not provided, all outputs are considered external
115116

116-
G = connect([F, R, C, P, addP, addC], connections; w1)
117+
G = connect([F, R, C, P, addP, addC], connections; external_inputs, external_outputs)
117118
```
118119

119120
If an external input is to be connected to multiple points, use a `splitter` to split up the signal into a set of unique names which are then used in the connections.

0 commit comments

Comments
 (0)