% Cells contains all the cells % The third element in a cell is an array with RSS % The fourth is an array with precision for row=1:1:row_num for column=1:1:column_num temp = cells{(row-1)*column_num + column}(:,3); for line=1:1:size((cells{(row-1)*column_num + column}(:,4))) % check if the precision of the GPS is greater then .... gps_precision = cells{(row-1)*column_num + column}(line,4); % weight 7 if gps_precision <= 10 temp(end+1) = temp(line); temp(end+1) = temp(line); temp(end+1) = temp(line); temp(end+1) = temp(line); temp(end+1) = temp(line); temp(end+1) = temp(line); % weight 3 elseif gps_precision <=100 temp(end+1) = temp(line); temp(end+1) = temp(line); % weight 2 elseif gps_precision <=200 temp(end+1) = temp(line); end % else weight 1 end cells_std(row,column) = std(temp); end end