Skip to content

Commit bc3869b

Browse files
committed
doc: minor modification in jldoctest
1 parent fcfc2fe commit bc3869b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plot_sim.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ julia> model = LinModel(tf(1, [1, 1]), 1.0);
4545
4646
julia> N = 5; U_data = fill(1.0, 1, N); Y_data = zeros(1, N);
4747
48-
julia> for i=1:N; updatestate!(model, U_data[:, i]); Y_data[:, i] = model(); end; Y_data
48+
julia> foreach(i->(updatestate!(model, U_data[:, i]); Y_data[:, i] = model()), 1:N); Y_data
4949
1×5 Matrix{Float64}:
5050
0.632121 0.864665 0.950213 0.981684 0.993262
5151

0 commit comments

Comments
 (0)