how to choose points That satisfy either one condition or another?

1 view (last 30 days)
%step1 : Delete the values on the border tol=1e-2; A=[];
a=0.2; b=0.05;
pause
for i=1:length(NxB)
x=NxB(i);
y=NyB(i);
if ((((x-0.165)+(y-0.165))^2)/(a^2))+((((x-0.165)+(y-0.165))^2))/(b^2) <=1-tol ||((((x-0.33)+(y-0.165))^2)/(a^2))+((((x-0.33)+(y-0.165))^2))/(b^2) <=1-tol
A=[A i]
end
end
I have a list of point in the matrix NxB i want only the one inside my ellypses deleting the one on the border of them. I have 2 ellypses how do I do it?
thanks

Answers (0)

Categories

Find more on Linear Algebra in Help Center and File Exchange

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!