This repository has been archived on 2023-12-21. You can view files and clone it, but cannot push or open issues or pull requests.
ece45-project/src/plot_wave.m

9 lines
208 B
Mathematica
Raw Normal View History

2021-12-01 23:17:58 +00:00
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