Can someone help me fix my error code for 3 different data points? I will attach screenshots

I am having a very hard time understanding exactly what bin count, edges & num count are. I have watched countless videos and looked all through mathworks and I really need someone to dumb this down for me to understand the histogram properties & what I need to do to correct my code to get a nice histogram with a transparency of the 3 data sets if possible. Attached is my script, command window & workspace for reference. Please help and please show pictures if possible for me to understand.

 채택된 답변

Cris LaPierre
Cris LaPierre 2022년 2월 12일
편집: Cris LaPierre 2022년 2월 12일
The error is given to you in the message. The BinEdges property needs to be a vector of numbers (2 or more) that define the edges of your histogram bins (each bar). This defines the ranges that correspond to each bar. To have the minimum number of bars (1), you need to define 2 bin edges (left side and right side).
You have assigned BinEdges only a single value, hence the error.
You can read more about how to define your edges here.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Data Distribution Plots에 대해 자세히 알아보기

제품

릴리스

R2019a

질문:

2022년 2월 12일

편집:

2022년 2월 12일

Community Treasure Hunt

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

Start Hunting!

Translated by