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.

 Respuesta aceptada

Cris LaPierre
Cris LaPierre el 12 de Feb. de 2022
Editada: Cris LaPierre el 12 de Feb. de 2022
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.

Más respuestas (0)

Categorías

Más información sobre Data Distribution Plots en Centro de ayuda y File Exchange.

Productos

Versión

R2019a

Etiquetas

Preguntada:

el 12 de Feb. de 2022

Editada:

el 12 de Feb. de 2022

Community Treasure Hunt

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

Start Hunting!

Translated by