Skip to content

Commit 394025b

Browse files
committed
hcat -> vcat
1 parent a181013 commit 394025b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SymbolicControlSystems.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ function ccode(sys::StateSpace{<:Discrete}; cse = true, function_name = "transfe
368368
x = [Sym("x[$(i-1)]") for i = 1:nx]
369369
# @show P
370370
if ControlSystemsBase.numeric_type(sys) <: SymPy.Sym
371-
vars = reduce(hcat, [collect(M.free_symbols) for M in (sys.A, sys.B, sys.C, sys.D)]) |> unique
371+
vars = reduce(vcat, [collect(M.free_symbols) for M in (sys.A, sys.B, sys.C, sys.D)]) |> unique
372372
vars = sort(vars, by = string)
373373
var_str = ""
374374
for var in vars

0 commit comments

Comments
 (0)