Merge pull request #1 from ltcptgeneral/standardize-wave-generation
Standardize wave generation
This commit is contained in:
commit
0df20f06de
@ -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
|
%GENERATE_SINE:Arthur Lu returns a matrix of sampled sine wave, where the
|
||||||
%phase shift is in number of periods
|
%phase shift is in number of periods
|
||||||
x = zeros(1, fs * duration);
|
x = zeros(1, fs * duration);
|
||||||
|
Reference in New Issue
Block a user