Files
QMUL_DSP_Labs/plotPeak.m
T
2016-10-11 17:30:58 +01:00

17 lines
442 B
Matlab

% a function to plot
function plotPeak(peak_period, wave_height, timestamps)
figure
subplot(2,1,1)
plot(timestamps, wave_height);
title('Graph of wave height as function of time')
xlabel('Time')
ylabel('Wave Height')
datetick('x', 0)
subplot(2,1,2)
plot(timestamps, peak_period);
title('Graph of peak period as function of time')
xlabel('Time')
ylabel('Peak Period')
datetick('x', 0)