Question: Coordinate geometry Assign points Distance with the distance between point (x1, y1) and point (x2, y2). The distance is calculated by: Distance = SquareRootOf( (x2

Coordinate geometry Assign points Distance with the distance between point (x1, y1) and point (x2, y2). The distance is calculated by: Distance = SquareRootOf( (x2 - 1)^2 + (y2 - y1)^2) Function Save e Reset DI MATLAB Documentation 1 function pointsDistance = CalculateDistance(x1, yi, x2, y2) 3 % Assign pointsDistance the distance between point (x1, y1) and point (x2, y2) pointsDistance = 0; 5 6 end MATLAB Editor to write your solution. To change focus out of the editor, press the Escape Key. Then press Tab to move to the next field, Shift-Tab to move to the previous field, or Enter to return to the MATLAB Editor. C Reset Code to call your function 1 CalculateDistance(1.0, 2.0, 1.0, 5.0)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
