i have 365 values of load (loads vs days) and i need load duration curve
is any simple way using matlab
i found this equation but not sure if is correct cos there is error when i tried to use it
ret = duration_plot(y_data, varargin)
many thanks in advance