how to find witch points are under the line??i have a number of points that i define as a X,Y and i have wrotten the under steps.
1 view (last 30 days)
Show older comments
hi every one
i have a number of points that i define as a X,Y and i have wrotten the under steps.
x = eldof(:,10); %%x=[0,0.5,240]
y = eldof(:,11);
plot(x, y, 'b.', 'MarkerSize', 5);
grid on;
% Make line
xRedLine =unique(x);
redLine = 60+10*exp((-(xRedLine-120).^2)/100);
hold on;
plot(xRedLine, redLine, 'r+-', 'LineWidth', 2, 'MarkerSize', 2);
%xlim([0 120]);
%ylim([0 60]);
% Find values less than the red line for each x and plot a red square around them
for k = 1 : length(x)
thisX = round(x(k))
index = find(thisX >= xRedLine);
if y(k) < redLine(index);
plot(thisX, y(k), 'rs', 'MarkerSize', 5);
end
end
now my answer is earned something like this
and as you see the area that shown with circle its false. and that area should verified with red but ...
what can i do for that??
please help me
thanks
0 Comments
Answers (0)
See Also
Categories
Find more on Creating and Concatenating Matrices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!