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

10 次查看(过去 30 天)
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 个评论

请先登录,再进行评论。

采纳的回答

Matt J
Matt J 2021-6-9
编辑:Matt J 2021-6-9
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')

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Vector Fields 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by