MATLAB Answers

Can the matrix be displayed in a way other than imagesc, imshow, image or pcolor commands (similar to the plot command)?

1 view (last 30 days)
HG
HG on 8 Jun 2021
Commented: Matt J on 10 Jun 2021
displaying a matrix by imagesc,imshow,image or pcolor commands is similar to the following figure(serrated line) :
Can the matrix be displayed as a straight line like the plot command?
the matrix is attached.
  3 Comments

Sign in to comment.

Accepted Answer

Matt J
Matt J on 9 Jun 2021
Edited: Matt J on 9 Jun 2021
One possibility is to use pgonCorners (which must be Downloaded)
to find the approximate vertices of the triangle. Then you can do
load Image
vertices=fliplr( pgonCorners(BW,3) );
plot( polyshape( vertices ) );
set(gca,'YDir','reverse')
  2 Comments
Matt J
Matt J on 10 Jun 2021
In order to have built such images, you would have to have had to have the vertices. You can use those to plot, if you don't throw them away.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!