Generates a sawtooth wave with amplitude of 1 unit, a frequency of 2 Hz or (4pi radians per second) and a phase shift of pi/4 radian.
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Generates a sawtooth wave with amplitude of 1 unit, a frequency of 2 Hz or (4pi radians per second) and a phase shift of pi/4 radian.
0 Kommentare
Akzeptierte Antwort
Yazan
am 1 Jul. 2021
% amplitude
amp = 1;
% fundamental frequency
f = 2;
% time span of 10 periods
T = 10/f;
% phase shift
theta = pi/4;
% sampling frequency (for example 20*f)
fs = 20*2;
% time intsants
t = 0:1/fs:T-1/fs;
% generate signal
x = sawtooth(2*pi*f*t+theta);
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Waveform Generation finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!