plot an example of a dumping factor for an amplifier in matlab

main.m
% Specify the damping factor
zeta = 0.7;

% Define the natural frequency (in rad/s) of the system
wn = 10;

% Time vector
t = 0:0.01:5;

% Compute the response of the system to a step input
response = 1 - exp(-zeta*wn*t).*sin(sqrt(1-zeta^2)*wn*t);

% Plot the response
plot(t, response);
xlabel('Time (s)');
ylabel('Amplifier Response');
title('Step Response of System with Damping Factor 0.7');
grid on;
405 chars
19 lines

related categories

gistlibby LogSnag