% distance = ((ground_truth_full(:,1)-x).^2 + (ground_truth_full(:,2)-y).^2 + (ground_truth_full(:,3)-h).^2).^0.5; distance = ((ground_truth_full(:,1)-x).^2 + (ground ...
fb = linedt(:,1); % From bus number... tb = linedt(:,2); % To bus number... r = linedt(:,3); % Resistance, R... x = linedt(:,4); % Reactance, X... b = linedt(:,5 ...