resize each pixel in an image based on its width and height
Show older comments
I want to 2d plot something like the picture but I don't want to use pcolor since it plot the center of every two pixels i.e., if my Matrix A has the size of (10,7), the pocolor gives (9,6) pixels. Imagesc doesn't have this problem but I cannot adjust the pixel size like what pcolor does (image below is with pcolor). Do you have any suggestion for this problem? Thanks

Answers (1)
Walter Roberson
on 19 Aug 2016
0 votes
Use texture mapping onto an irregular grid.
2 Comments
Farz Tak
on 19 Aug 2016
Categories
Find more on Image Arithmetic in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!