%model_prop, function models propagation and allows for empirical %determination of best models. %opens raw data file, models each base station, saves as Chong-Brandon.mat %compares models to measured data, with CompareMaps.m function [data] = model_prop(start,stop,n) vr = [start:n:stop]; for cnt = 1:size(vr,2); load raw_ABCD.mat; Cell_Info_A.meas = predict_map(Cell_Info_A,vr(cnt)); Cell_Info_B.meas = predict_map(Cell_Info_B,vr(cnt)); Cell_Info_C.meas = predict_map(Cell_Info_C,vr(cnt)); Cell_Info_D.meas = predict_map(Cell_Info_D,vr(cnt)); save Chong-Brandon.mat; [mu, sigma] = CompareMaps('Cell_Info_ABCD.mat','Chong-Brandon.mat'); data(cnt,1) = vr(cnt); data(cnt,2) = mean(mu); data(cnt,3) = mean(sigma); end set(figure, 'Position', [4, 500, 1000, 380]); subplot(1,2,1); plot(data(:,1),data(:,2)); title('Avg. Mean'); subplot(1,2,2); plot(data(:,1),data(:,3)); title('Avg. Standard Deviation');