Merge pull request #1 from ltcptgeneral/standardize-wave-generation

Standardize wave generation
This commit is contained in:
Arthur Lu 2021-12-01 15:44:52 -08:00 committed by GitHub
commit 0df20f06de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,4 @@
function x = generate_sine(amplitude, frequency, phase, fs, duration)
function x = generate_sine(amplitude, frequency, phase, fs, duration, duty)
%GENERATE_SINE:Arthur Lu returns a matrix of sampled sine wave, where the
%phase shift is in number of periods
x = zeros(1, fs * duration);

1
src/test Normal file
View File

@ -0,0 +1 @@
aaaa