Hi Anne,
the input parameter “distance” is calculated in +macroscopic_pathloss_models/generalPathlossModel.m, you find it in the parameter distance_matrix_2D that represents all distances from each base station with every pixel of the Region of Interest (RoI).
Best,
Fjolla