How to plot histograms on the same axis scale?

1 回表示 (過去 30 日間)
Ali
Ali 2019 年 3 月 28 日
I am comparing my trained model with other benchmark models with the error histogram but the axis of histogram is different for each method as shown in figure.For instance to plot the error histogram of every method,I tried this code:
Targets=Actual;
Outputs=Predicted_by_model);
errors=Targets-Outputs;
error_std=std(errors);
MAPE=mean(abs(Targets-Outputs)./Targets)*100;
histfit(errors);
legend('Proposed')
title(['MAPE = ' num2str(MAPE) ' , Error St.D. = ' num2str(error_std)])
Hist.png

回答 (0 件)

カテゴリ

Help Center および File ExchangeHistograms についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by