Can the matrix be displayed in a way other than imagesc, imshow, image or pcolor commands (similar to the plot command)?
조회 수: 11 (최근 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
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')
댓글 수: 2
Matt J
2021년 6월 10일
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.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Vector Fields에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!