필터 지우기
필터 지우기

Fourier Series on MATLAB

조회 수: 2 (최근 30일)
Khuloud Al Kaabi
Khuloud Al Kaabi 2020년 11월 9일
편집: Setsuna Yuuki. 2020년 11월 9일
How do i write code to produce periodic functions (including sinusoidal, triangle, sawtooth, square waves) and square pulse trains of varying amplitudes, frequencies, phases, and duty cycles using Fourier Series on MATLAB.
  댓글 수: 1
John D'Errico
John D'Errico 2020년 11월 9일
Far too vague to get a serious answer, this question is looking for tutoring in the subject of Fourier series and in MATLAB, but is not a question about anything at this point.

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

답변 (1개)

Setsuna Yuuki.
Setsuna Yuuki. 2020년 11월 9일
편집: Setsuna Yuuki. 2020년 11월 9일
You need know the fuction of each wave form and use a "for" with fourier series.
For example:
components = 1; t = 0:1e-2:10;
sumatoria = 0; i = 1;
figure;
for k = 1:1:components
n=2*k-1;
serie=2/pi*1/n*sin(n*pi*t);
sumatoria = serie+sumatoria;
end
sumatoria = 1/2+sumatoria;
figure;
plot(t,sumatoria);

카테고리

Help CenterFile Exchange에서 Waveform Generation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by