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

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

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site