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

조회 수: 12 (최근 30일)
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
William Rose
William Rose 2022년 6월 24일
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?
Tiffany So
Tiffany So 2022년 6월 24일
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
Sulaymon Eshkabilov 2022년 6월 24일
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)

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Frequency-Domain Analysis에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by