import numpy as np import control # %% Creating a transfer function: num = np.array([2]) den = np.array([5, 1]) H = control.tf(num, den) # %% Getting the num and den coeffs as lists and then as arrays: (num_list, den_list) = control.tfdata(H) num_array = np.array(num_list) den_array = np.array(den_list) # %% Displaying the num and den arrays: print('num_array =', num_array) print('den_array =', den_array)