Can the matrix be displayed in a way other than imagesc, imshow, image or pcolor commands (similar to the plot command)?
3 ビュー (過去 30 日間)
古いコメントを表示
displaying a matrix by imagesc,imshow,image or pcolor commands is similar to the following figure(serrated line) :
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/646180/image.png)
Can the matrix be displayed as a straight line like the plot command?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/646185/image.png)
the matrix is attached.
採用された回答
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 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!