![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/652820/image.jpeg)
Is it possible to calculate time constant and DC gain for RC circuit
5 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hi,
is it possible to to calculate time constant and DC gain for a given RC circuit?
I have here this matlab code and I want to calculate tau and K. How can I find here tau and K?
I have found this calculator here for tau:
https://www.digikey.com/en/resources/conversion-calculators/conversion-calculator-time-constant
I am not sure if I can calculatetau in this way. Or do I have to set up the transfer function of a RC circuit
to calculate the DC gain?
%% RC - Lowpass Unit Step Response in Time Domain
% Define Parameters
R = 1000; % Resistance in Ohm
C = 0.0001; % Capacitance in Farad
K = ?; % DC gain
tau = ?; % Time constant in s
par_RC_lowpass = [K tau ];
% Calculate Unit Step Response
t = 0:0.01:10* tau; % Time vector in s
y = unit_step_PT1 ( par_RC_lowpass , t);
% Plot Unit Step Response
plot ([0 0 t(end )] ,[0 1 1], 'k--',t,y,'k-')
axis ([t(1) t(end ) min(y) 1.1* max(y)])
h_xlabel = xlabel ({ '$t$ \,/\ ,s'});
set ( h_xlabel ,'Interpreter','latex');
h_ylabel = ylabel ({'$u(t)$\,/\ ,V'});
set ( h_ylabel ,'Interpreter','latex');
grid on
0 comentarios
Respuestas (1)
Mathieu NOE
el 14 de Jun. de 2021
hello
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/652820/image.jpeg)
a simple RC circuit like the one shown above
has tau = RC and DC gain =1 (assuming Vout = voltage accross C and Vin = voltage accross R + C
this is obvious if you write the electrical equations
0 comentarios
Ver también
Categorías
Más información sobre Power Converters en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!