The problem is that my matrix is rectangular shape, but it refers to a trapezoidal shape, so I should reshape the content of the matrix to fit the shape. The function I would like to use is is a sort of "area()" with the content of imagesc().
Display imagesc within a shape
2 次查看(过去 30 天)
显示 更早的评论
Hi! I have a matrix of values that refer to the stress on a trapezoidal shape. Now, I would like to show the intensity of the stresses on the shape. If I use imagesc, I can see the stresses on a square... How could I reshape imagesc to fit my trapezoidal shape?
Thank you.
0 个评论
采纳的回答
Alessandro Masullo
2012-10-20
6 个评论
Image Analyst
2012-10-20
编辑:Image Analyst
2012-10-20
No, you use imtransform on the image to create a new rectangular image just for display. Then use imagesc() for displaying it. (By the way you should have accepted my answer rather than yours.) Why don't you post your data/image so we can see what you're talking about?
更多回答(1 个)
Image Analyst
2012-10-19
Axes must be rectangular. imagesc() uses some arbitrary colormap. If your stresses are zero outside the trapezoid and show up as blue, you could use a different colormap - one that had zero being black or the same gray as the rest of your figure if you didn't want the zeros to show up as blue.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Specifying Target for Graphics Output 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!