how to display the valueof q1, q3, max, min, whisker of boxplot

53 ビュー (過去 30 日間)
Skydriver
Skydriver 2020 年 11 月 11 日
コメント済み: Ameer Hamza 2020 年 11 月 11 日
Ia ave te coding like this
clear all
clc
filename = 'table_FC.xlsx';
rng default
N = 10000;
data = randn(N,1);
figure(1)
boxplot([data],'PlotStyle','traditional','Labels',{'FC'},'Whisker',1)
xlabel('Type of FC');
ylabel('Fines Content (%)');
But I want to display the value of Min, Q1, Median, Q3 and Maximum. Let me know how to do that.
Thank you

回答 (1 件)

Ameer Hamza
Ameer Hamza 2020 年 11 月 11 日
This links: https://www.mathworks.com/help/stats/boxplot.html#bu5f8g7-4 shows the functions used by boxplot to calculate these values. You can also call these functions on your dataset.
  4 件のコメント
Skydriver
Skydriver 2020 年 11 月 11 日
Can you show me what is the function to do manually
Ameer Hamza
Ameer Hamza 2020 年 11 月 11 日
You can do it in GUI. In the figure window, go the to "insert" menu and select "text box" to insert text boxes in on your axes.

サインインしてコメントする。

Community Treasure Hunt

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

Start Hunting!

Translated by