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 Center および File ExchangeHistograms についてさらに検索

タグ

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by