From 2e950c69ff05a4e076f02343fc4f75025d202cff Mon Sep 17 00:00:00 2001 From: Ben Zhang <2690287331@qq.com> Date: Sun, 5 Dec 2021 21:09:12 -0800 Subject: [PATCH] Update generate_sawtooth.m edit comments --- src/generate_sawtooth.m | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/generate_sawtooth.m b/src/generate_sawtooth.m index 3886e99..76e1726 100644 --- a/src/generate_sawtooth.m +++ b/src/generate_sawtooth.m @@ -3,7 +3,6 @@ function x = generate_sawtooth(amplitude, frequency, phase, fs, duration, duty) % CONTRIBUTORS: % Ben Zhang: Function author -% Arthur Lu: Format author % DOCUMENTATION: % phase shift is in number of periods @@ -31,11 +30,11 @@ function x = generate_sawtooth(amplitude, frequency, phase, fs, duration, duty) %part before the straght vertical line if(st < mid) - x(i) = slope * st; + x(i) = slope * st; % amplitude from start to +amplitude %part after the straght vertical line else - x(i) = slope * (st - 0.5) - amplitude; + x(i) = slope * (st - 0.5) - amplitude; %amplitude from -amplitude to start end end