How plot slope from lower point on image to last point .When I apply my code ,its not draw to end point in image

1 view (last 30 days)
this part of code
for k=1:300
for j=1:300
if (j==300) &&(BWw(k,j)==1)
row1=k;
column1 = j;
end
end
end
%%%%%%%%%%%%%%%%%
plot( [row column],[row1 column1],'Color','r','LineWidth',3);

Accepted Answer

KSSV
KSSV on 5 May 2021
I = imread('image.png') ;
[m,n,p] = size(I) ;
imshow(I) ;
hold on
plot([1 m],[n 1],'b')
  3 Comments

Sign in to comment.

More Answers (0)

Categories

Find more on Graphics Object Programming in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!