How to plot histograms on the same axis scale?

1 visualización (últimos 30 días)
Ali
Ali el 28 de Mzo. de 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

Respuestas (0)

Categorías

Más información sobre Histograms en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by