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
2021-12-01 15:17:58 -08:00

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