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.

 Accepted Answer

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.

More Answers (0)

Categories

Products

Release

R2019a

Community Treasure Hunt

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

Start Hunting!