WaveHeight=[3 1 5 2 3.1 6 5.5 3 2.5];
We need to find the highest 1/3:
HighestThird=[6 5.5 5]
But what if we what a function that will calculate the mean of the heights 1/3 of WaveHeight with the length of WaveHeight being a variable which may be large?
Please see my comment in this linked post How to determine significant wave height from time series data in Matlab
E.g.
WaveHeight=randi(1000,1,1000);HighestThird=
Best Answer