I have the mean and the max of two data sets. I want to create a bar chart that will compare side by side the mean of data set one with data set two and the max of data set one with data set 2. Does anyone know how I can do this?

 채택된 답변

Image Analyst
Image Analyst 2017년 9월 21일

0 개 추천

Use bar():
meanValue1 = mean(data1(:)) % Mean of the first set of data.
maxValue2 = max(data2(:)) % Max of the second set of data.
bar([meanValue1, maxValue2], 'BarWidth', 0.97);

댓글 수: 1

RODRICK PERSUN
RODRICK PERSUN 2017년 9월 21일
Thank you--that was so easy..I want to compare the mean of one with other, and the max of one with the other but I was able to see how you did it.

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Descriptive Statistics and Visualization에 대해 자세히 알아보기

태그

질문:

2017년 9월 21일

댓글:

2017년 9월 21일

Community Treasure Hunt

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

Start Hunting!

Translated by