Write a MATLAB function named midpoint that has two 1x3 matr
Write a MATLAB function named midpoint that has two 1x3 matrix inputs representing point coordinates and returns a single 1x3 matrix that is the midpoint of the two input points.
Solution
% a= coordinates of point a
% b= coordinates of point b
% c= midpoint coordinate
a =input(\'enter the matrix a =\')
b = input (\'enter the matrix b =\')
c =(a+b)/2
