Skip to content

Commit 44edba8

Browse files
committed
Cleanup
1 parent 439557d commit 44edba8

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

mwes/mwe_02.jl

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,8 @@ sys = ss(A, B, C, D)
8686

8787
# 1. Extract B matrices
8888
B1 = B[:, 1] # First input column (active)
89-
B2 = B[:, 2] # Second input column (constant)
9089

91-
# 2. Compute steady-state offset from constant input
92-
x_ss = -A \ (B2 * force) # Equivalent to -inv(A) * B2 * force
93-
94-
# 3. Create new system with only the first input
90+
# 2. Create new system with only the first input
9591
sys_new = ss(A, B1, C, D[:, 1])
9692

9793
bode_plot(sys_new; title="Bode Plot of Linearized Winch System")

0 commit comments

Comments
 (0)