I have a matrix which I display with imagesc
. Now I'm asked to make an "interpolated" version (i.e. display with smoother colors).
While I could compute a larger interpolated matrix, I seem to remember that there was a command to switch between two such display modes, either a little command in the style of axis equal
or some Property - but I just cannot find it.
You may want to use pcolor
instead of imagesc
and set the shading
properties to interp
.
Note that pcolor
and imagesc
will not display your data in the same way but the shading
property is only available for faceted plots.
However this is only a display solution, you will have to interpolate your data if you want to work with it afterwards.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With