Complete the code to define the armature resistance in the DC motor model.
R_a = [1]; % Armature resistance in ohms
The armature resistance is typically a small value; here, 0.5 ohms is correct.
Complete the code to calculate the back EMF constant K_b in the DC motor model.
K_b = [1]; % Back EMF constant in V/(rad/s)
The back EMF constant is often a small decimal; 0.1 V/(rad/s) is typical.
Fix the error in the code to correctly compute the motor torque T using torque constant K_t and armature current I_a.
T = [1] * I_a; % Torque in Nm
Torque is calculated as torque constant K_t times armature current I_a.
Fill both blanks to create a transfer function for the motor speed with input voltage V and output angular velocity omega.
motor_tf = tf([[1]], [[2] 1]);
The numerator is the torque constant K_t, and the denominator includes the moment of inertia J for the motor speed transfer function.
Fill all three blanks to define the state-space matrices A, B, and C for the DC motor model.
A = [[-[1]/[2], -[3]/[2]], [[3]/[2], 0]];
Matrix A uses resistance R_a and inertia J in denominators, and back EMF constant K_b in off-diagonal terms.