How to plot Amplitude Spectrum of CT and DT System Response

조회 수: 7 (최근 30일)
Wali Ullah
Wali Ullah 2020년 11월 25일
답변: Shraddha Jain 2020년 12월 16일
Hi,
I want to plot this function in MatLab, but it either doesn't plot (session just crashes after a few minutes), or it says that imaginay/complex numbers can't be plotted.
Can anyone help me with the syntax/commands for these functions?
I'm fairly new to matlab so I don't know how to plot this. Here are the pictures of 2 functions (CT and DT):
1.
2.
REFERENCE/EXAMPLE:
The plots are supposed to look like this:

답변 (1개)

Shraddha Jain
Shraddha Jain 2020년 12월 16일
Hi Wali,
I understand that you want to plot the amplitude of the continuous-time frequency response and discrete-time frequency response . This can be done in MATLAB using the abs function as,
figure
plot(w,abs(Y_jw)) % Continuous-time Frequency Response
figure
plot(v,abs(Y_ejv)) % Discrete-time Frequency Response
It is not possible to plot complex numbers by directly providing them as arguments in the plot function as of now.

카테고리

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