xxxxxxxxxx
% Define the parameters of the second-order transfer function
numerator = [1]; % Numerator coefficients
denominator = [1, 2, 1]; % Denominator coefficients (s^2 + 2s + 1)
% Create a transfer function object
sys = tf(numerator, denominator);
% Plot the Bode plot
bode(sys);
% Add labels and title to the plot
title('Bode Plot of a Second-Order Transfer Function');
grid on;