Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
executable file 20 lines (19 sloc) 507 Bytes
function dot_index = find_dot(X, Y, xmin, xmax, ymin, ymax)
% Function to find the dot with co-ordinates in the desired interval.
%
% INPUTS:
% X, Y: x, y co-ordinates of all the dots
% xmin, xmax: x co-ordinate interval
% ymin, ymax: y co-ordinate interval
%
% OUTPUTS:
% dot_index: index corresponding to the dot in the co-ordinate arrays
%
% AUTHOR:
% Lalit Rajendran (lrajendr@purdue.edu)
%
% DATE:
% 09/10/19
% find dot index
dot_index = find(X > xmin & X < xmax & Y > ymin & Y < ymax);
end