Question: Use matlab to write a function of the form [ dist ] = distPt 2 Pt ( x 1 , y 1 , x 2

Use matlab to write a function of the form [dist]= distPt2Pt(x1,y1,x2,y2) that returns the Euclidean dis- tance between the point (x1,y1) and the point (x2,y2). Show the command window output for the case where (x1,y1)=(-1,3) and (x2,y2)=(5,-3)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

To solve this problem well write a MATLAB function to calculate the Euclidean distance between two p... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!