Borrar filtros
Borrar filtros

Boxplot with time on x axis

5 visualizaciones (últimos 30 días)
Craig Cowled
Craig Cowled el 27 de Feb. de 2013
Does anybody know how to obtain a boxplot with time on the x axis?
I have collected experimental observations at irregular intervals over a period of time and would like my boxplot to have a linear time axis, however, the boxplot displays my results as 12 equally spaced boxplots. This wrongly implies that the observations were taken at regular intervals.
My y-data (observations) is in a matrix of 1836 rows and 12 columns (much of the data is blank, i.e., NaN). Each of the columns represents data collected at a different time and has been recorded in a vector of length 12.
Ideas?

Respuesta aceptada

Craig Cowled
Craig Cowled el 27 de Feb. de 2013
Found the answer ...
Need to use 'positions' like this
boxplot(Y,'positions',X)

Más respuestas (0)

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by