connect median in a boxplot

조회 수: 7 (최근 30일)
yasmine ayed
yasmine ayed 2019년 9월 11일
댓글: Jeenu John 2021년 3월 6일
Hi,
I have this boxplot which reprent wind velocity according to time.
I want to connect all medians ( represented with an horizantal red line) with just one curve.
what can I do ?
wind velocity by time of bizert station.png

채택된 답변

Akira Agata
Akira Agata 2019년 9월 11일
Like this?
% Sample data
Data = randn(100,10);
% Calculate median for each column
med = median(Data);
% Visualize the result
figure
boxplot(Data)
hold on
plot(med,'ro-')
boxplot.png
  댓글 수: 4
Akira Agata
Akira Agata 2019년 9월 20일
It depends on what types of file your data is stored.
If your data is stored in CSV or Excel file format, it would be easy to import your data.
The following link would be some help.
Jeenu John
Jeenu John 2021년 3월 6일
i have imported excel sheet data into matlab . How to draw boxplot using these data and connect the median

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by