MATLAB: Imagesc for triangular element

imagesc

Hi,
I have a plate with mesh of triangular elements. I have specific number for each element. How can I use imagesc to have contourplot of those values? it is different from trisurf function of course?
Thanks

Best Answer

YOu can straight away plot contour with your data. Have a look in the following file exchange function: https://in.mathworks.com/matlabcentral/fileexchange/38858-contour-plot-for-scattered-data
If you want to use imagesc you have to convert your unstructured data into structured data either by using scatteredinterpolant or griddata.