Question: Problem 2. (25 points) Define a structure point containing two fields x and y. The x field will contain the r-position of the point, and

Problem 2. (25 points) Define a structure point containing two fields x and y. The x field will contain the r-position of the point, and the y field will contain the y-position of the point. Then write a function dist2 that accepts two points and return the distance between the two points on the Cartesian plane. Be sure to check the number of input arguments in your function. Write a MATLAB program to test the function for two points
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
