You may assume that center


USING MATLAB 

Define a function named insideCircle that takes 3 arguments as input: the center of the circle, the radius of the circle, and a point. The first line of the function should 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 the x- and y-coordinates of a point.

The function should 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. Tip: use the sign function (type help sign at the command prompt to find out about it). 

Request for Solution File

Ask an Expert for Answer!!
MATLAB Programming: You may assume that center
Reference No:- TGS089329

Expected delivery within 24 Hours