I have the bounds of an ellipse in x- and y-coordinates. My end goal is to get a matrix of all x-values and a corresponding matrix of all y-values for the points in/out that ellipse. If possible, I would also like to color in the specified ellipse on a 2d plot. Does anyone know which commands/functions I can use to do this? Most of what I have seen simply confirms whether input values lie in/out an ellipse. Thank you!
such that a sample of the ellipse is represented as :
xCenter = 15;yCenter = 10;xRadius = 1.5;yRadius = 80;theta = 0 : 0.01 : 2*pi;x = xRadius * cos(theta) + xCenter;y = yRadius * sin(theta) + yCenter;plot(x, y, 'LineWidth', 3);
Best Answer