# plotting linear differential equations and using a bode plot for amplitude and frequency

4 views (last 30 days)
Tiffany So on 24 Jun 2022
Edited: Sulaymon Eshkabilov on 24 Jun 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 CommentsShowHide 1 older comment
Tiffany So on 24 Jun 2022
Hi William! these are two separate equations and i need to graph both separately. i will try both methods, thank you for the suggestion!

Sulaymon Eshkabilov on 24 Jun 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 CommentsShowHide 1 older comment
Sulaymon Eshkabilov on 24 Jun 2022
Edited: Sulaymon Eshkabilov on 24 Jun 2022
Most welcome!