Keep Getting This Error when plotting historgram and plot

3 Ansichten (letzte 30 Tage)
Below is the error im getting while im trying to plot a histrogram and a function on the same plot. My buddy and I are doing this together and his output shows both the histogram and the function, mine only shows the function while giving me this error about the histogram colour. Please help! error.PNG

Akzeptierte Antwort

Ridwan Alam
Ridwan Alam am 6 Dez. 2019
Bearbeitet: Ridwan Alam am 6 Dez. 2019
Use yyaxis left before plotting the histogram. If you can share the data and the parameter values, I could try to debug.
  1 Kommentar
Daniel Dascher
Daniel Dascher am 6 Dez. 2019
Thank you! That worked!
I ended up handing in the project by using "hist" instead of "histogram". It worked for some reason even though it's not reccomended. However, thank you for your help!

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Produkte


Version

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by