Imagesc for triangular element

4 visualizzazioni (ultimi 30 giorni)
Torkan
Torkan il 3 Feb 2019
Commentato: KSSV il 4 Feb 2019
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

Risposta accettata

KSSV
KSSV il 4 Feb 2019
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.
  7 Commenti
Torkan
Torkan il 4 Feb 2019
Thanks
So, this function still available in MATLAB right? (2018) since while writing in MATLAB nothing is appeared for help.
Also, it gives us sth like imagesc, right? I mean colormap...
KSSV
KSSV il 4 Feb 2019
imagesc works on structured grids i.e matrices......tricontour will work....

Accedi per commentare.

Più risposte (1)

Torkan
Torkan il 4 Feb 2019
walter thank you so much for detail

Tag

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by