I'm trying to find the slope of this line
line([newBoxPolygon(1, 1) newBoxPolygon(4, 1)],[newBoxPolygon(1, 2) newBoxPolygon(4, 2)],'Color','G');%Slope
X = (max([50 50])-min([50 50])); Y=(max([1 10000])-min([1 10000]));Slope_Reference=Y/X;disp('Slope_Reference:');disp(Slope_Reference);
Is the slope i'm obtaining correct ?
Best Answer