Reorganized Into Folders
This commit is contained in:
8
src/Helper/plot_wave.m
Normal file
8
src/Helper/plot_wave.m
Normal file
@@ -0,0 +1,8 @@
|
||||
function plot_wave(waveform, fs, duration)
|
||||
%PLOT_WAVE:Arthur Lu plots a waveform
|
||||
x = linspace(0, duration, fs * duration);
|
||||
plot(x, waveform);
|
||||
xlabel("time");
|
||||
ylabel("amplitude");
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user