Completed exercise 2.2
This commit is contained in:
+16
@@ -0,0 +1,16 @@
|
||||
% 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)
|
||||
Reference in New Issue
Block a user