Short description on the first line following the function header.
[dsdata, dsdates] = downsample(data,YMDHms, frequency, method)
n x m matrix of values, downsampled data
n x 1 vector of values, downsampled
the z parameter // separated by ":".
N x 1 vector of strings, date and time data
row vector of strings, separators required for splitting datetime
string value, downsampling frequency. Options are minutely, hourly, daily, monthly, annually. Or supply frequency as a vector of values in the format [Years Months Days Hours Minutes Seconds].
string variable, mean or median