Keep Getting This Error when plotting historgram and plot

조회 수: 1 (최근 30일)
Daniel Dascher
Daniel Dascher 2019년 12월 6일
댓글: Daniel Dascher 2019년 12월 6일
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

채택된 답변

Ridwan Alam
Ridwan Alam 2019년 12월 6일
편집: Ridwan Alam 2019년 12월 6일
Use yyaxis left before plotting the histogram. If you can share the data and the parameter values, I could try to debug.
  댓글 수: 1
Daniel Dascher
Daniel Dascher 2019년 12월 6일
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!

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Histograms에 대해 자세히 알아보기

태그

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by