plotting linear differential equations and using a bode plot for amplitude and frequency
7 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Tiffany So
el 24 de Jun. de 2022
Editada: Sulaymon Eshkabilov
el 24 de Jun. de 2022
I have two linear differential equations
a) 1.896(dy(t)/dt) = x(t)
b) 

I am having issues correctly inputting this into matlab to be able to plot this on a bode amplitude and frequency diagram.
2 comentarios
William Rose
el 24 de Jun. de 2022
Are a) and b) a coupled set of equations, or two separate problems?
There are many approaches to generating a Bode plot. Two popular ones are:
1. Find an analtyic solution to the differential equation, and use that analytic solution to determing the equations for the magnitude and phase of the Bode plot.
2. Solve the differential equation numerically, with a sinusoidal input of some specific frequency. Determine the magnitude and phase relation between input and output, once the system stabilizes. That generates one magntiude point and one phase point for your Bode plot. Repeat with other frequency inputs, until you have done enough points to make a plot that you are satisfied with.
Do you want to do method 1, or method 2, or something else?
Respuesta aceptada
Sulaymon Eshkabilov
el 24 de Jun. de 2022
It is a quite straightforward exercise and no need to solve for an analytical solution. Convert to "s" domain (Laplace transform) and create tf, then use bode(). Your exercise problems are not sufficiently defined.
E.g. (b) Assuming "0" initial conditions,
TF_b = tf(130.19, [1 8.22 130.19]);
bode(TF_b)
2 comentarios
Sulaymon Eshkabilov
el 24 de Jun. de 2022
Editada: Sulaymon Eshkabilov
el 24 de Jun. de 2022
Most welcome!
Más respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
