필터 지우기
필터 지우기

Boxplot with time on x axis

조회 수: 5 (최근 30일)
Craig Cowled
Craig Cowled 2013년 2월 27일
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?

채택된 답변

Craig Cowled
Craig Cowled 2013년 2월 27일
Found the answer ...
Need to use 'positions' like this
boxplot(Y,'positions',X)

추가 답변 (0개)

태그

Community Treasure Hunt

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

Start Hunting!

Translated by