MRE = (1/n) * sum((abs(approx - subArray) ./ abs(subArray)));
              ^^^                         ^
Using some random data:
clc, clear, rng(3);
n = 140;
approx = rand(n, 1);
subArray = rand(n, 1);
MRE = (1/n) * sum((abs(approx - subArray) ./ abs(subArray)))
% MRE =
% 
%     4.2877

