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