Filter löschen
Filter löschen

Fourier series sawtooth wave functions

1 Ansicht (letzte 30 Tage)
Paul Velasco
Paul Velasco am 13 Nov. 2019
Kommentiert: Paul Velasco am 13 Nov. 2019
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 Kommentare
Walter Roberson
Walter Roberson am 13 Nov. 2019
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 am 13 Nov. 2019
Sorry im pretty new to this, these are the equations for ap and bp that are in a seperate script.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Mathematics finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by