How to calculate MAPE for type double

I have to vector of type double; target_2019 and output_2019.
How can i calculate MAPE?

Answers (1)

You can use the below formula to calculate the MAPE:
mape = mean(abs((target_2019 - output_2019)./target_2019));

Categories

Find more on Simulink in Help Center and File Exchange

Products

Release

R2020b

Tags

Asked:

on 3 Mar 2021

Answered:

on 11 Mar 2021

Community Treasure Hunt

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

Start Hunting!