필터 지우기
필터 지우기

Fourier series sawtooth wave functions

조회 수: 1 (최근 30일)
Paul Velasco
Paul Velasco 2019년 11월 13일
댓글: Paul Velasco 2019년 11월 13일
Hello, im trying to create a sawtooth wave with these functions but they are just giving me a single sine wave. Please help, thank you.
syms t T p
T=input('what is the period');
p=input('how many coefficients');
y=10;
f=t/(2*T);
global ap bp
ap=(2/T).*int((f.*cos(p*2*pi*t/T)),t,0,T);
bp=(2/T).*int((f.*sin(p*2*pi*t/T)),t,0,T);
  댓글 수: 5
Walter Roberson
Walter Roberson 2019년 11월 13일
Is this a correction to the previous Question, or is it an unrelated Question? If it is a correction then you should edit the previous Question instead of creating a new Question. Now people do not know which of the two to solve.
Paul Velasco
Paul Velasco 2019년 11월 13일
Sorry im pretty new to this, these are the equations for ap and bp that are in a seperate script.

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

답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by