Question
USING MATLAB
Describes a function named insideCircle that takes 3 arguments as input- the center of the circle, radius of the circle, and a point. The first line of the function have to look like-
function result = insideCircle(center, radius, point)
You may assume that center is a 1 x 2 vector containing the x- and y-coordinates of the center of the circle and that point is a 1 x 2 vector containing x- and y-coordinates of a point.
Function must return 1 if the point is inside the circle, 0 if the point is on the circle and -1 if the point is outside the circle.