How to plot histograms on the same axis scale?

3 visualizzazioni (ultimi 30 giorni)
Ali
Ali il 28 Mar 2019
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

Risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by