MATLAB: Find the midpoint between the two points (1, -7) and (-1, -23).

finding midpoints

Looking for help with this question.

Best Answer

homework?
P1 = [1, -7];
P2 = [-1, -23];
out = (P1(:) + P2(:)).'/2
Related Question