9 lines
208 B
Matlab
9 lines
208 B
Matlab
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
|
|
|