I am working on a project, and I came accross the ismembertol function. "x" is a 61×61 double, and I want to extract numbers closest to the values in the xline vector. Can I use ismembertol(a,b,tol) for this? Is there a better way? Maybe using logical operations? What is the "tol" part, what does it do, and how can it be applied?
%if not exact match
%lets say we are given matrices x,y, and z by the map
xline = (0.0000:0.050:3.0000);
tol = eps(0.5); %idk what I'm doing here or what the purpose of this is. I saw it as an example on MathWorks
idx2 = find(ismembertol(x,xvalues,tol));
Best Answer