write the matlab code that would make the given diagram work A Simulink diagram for this state-variable model is as shown in the below figure. Use the
following parameter values: M=50kg,K=20N*m,R=0.1m,J=30kg*m^(2),
B_(1)=50N*m*s, and B_(2)=100N*m*s. The applied torque is a step of 1N*m starting at
t=1s.
A Simulink diagram for this state-variable model is as shown in the below figure. Use the following parameter values: M=50 kg, K=20 Nm, R=0.1m, J=30 kgm2 B, =50 Nms , and B, =100 Nms . The applied torque is a step of 1 N m starting at t=1s.
Clock
omega
Unit step att=1s
theta
S
S
IC=0
IC=0
B1
K
K/R
K/R
X
5
IC=0
IC=0
B2
K/R^2