how to compute the complex Fourier series expansion of half-wave rectified signal. and plot its phase and amplitude spectrum?

조회 수: 44 (최근 30일)
My Question in the title, i am new to matlab and i need help with this please

답변 (4개)

Sulaymon Eshkabilov
Sulaymon Eshkabilov 2020년 8월 12일
Hi,
Here are several nice tutorial examples of matlab on Fourier Transform.

Star Strider
Star Strider 2020년 8월 12일
My impression is that this is homework. We give hints for homework, not complete code. (You must write the code. We will help you to get your code to run if you have problems with it.)
It is straightforward to compute the Fourier transform symbolically. You need to remember also to allow for the part of the signal that is zero in the time range that you are computing it.
You already discovered Hi how do i plot a halfwave rectifier signal in matlab? i tried the coding below and only got the fullwave (since you posted a Comment to it to request thatI look at this Question), all you then need to do is to read the documentation for fft and use that with the signal I provided in that Answer.
  댓글 수: 9
WJ
WJ 2020년 8월 12일
편집: WJ 2020년 8월 12일
how can i make the amplitude and phase look like this? as straight lines
or is it just like this when n= a constant number?
Star Strider
Star Strider 2020년 8월 12일
To get the amplitude (amplitude = magnitude) spectrum such as in the plot image, use the fftshift function, then plot using a symmetric frequency vector, for example:
sy = fftshift(y);
sf = linspace(-10,10, numel(sy));
then:
figure
stem(sf, sy)
or something similar.

댓글을 달려면 로그인하십시오.


Swapnil Khot
Swapnil Khot 2021년 5월 8일
How we write code for half wave rectifier using Fourier series

EE_student
EE_student 2021년 6월 19일
Wait have you sorted it out?

카테고리

Help CenterFile Exchange에서 Spectral Measurements에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by