%load Radar_data.mat;
plot(Radar.Metal.X(i)Y(j).data(:,1),Radar.Metal.X(i)Y(j).data(:,2),'.');
x = Radar.Metal.X(i)Y(j).data(:,1);
y = Radar.Metal.X(i)Y(j).data(:,2);

% yBest_index = find( -300 < y <= max(y))
yBest_index = find( y > -300);
yBest = y(yBest_index);
xBest = x(yBest_index);

hold on;
grid minor;
td=[0 Radar.Metal.X(i)Y(j).data(end,1)];
xd=[-300 -300]; %this is the red line. it is the real distance to the object
plot(td,xd,'r','LineWidth',3)


%% Here are your values chobruuuu ploted alone
% The top line vector i called : yBest
%and it's corresponding x vector is xBest
figure;
plot(xBest,yBest);