Imagesc for triangular element

조회 수: 3 (최근 30일)
Torkan
Torkan 2019년 2월 3일
댓글: KSSV 2019년 2월 4일
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

채택된 답변

KSSV
KSSV 2019년 2월 4일
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
Torkan
Torkan 2019년 2월 4일
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 2019년 2월 4일
imagesc works on structured grids i.e matrices......tricontour will work....

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Torkan
Torkan 2019년 2월 4일
walter thank you so much for detail

태그

Community Treasure Hunt

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

Start Hunting!

Translated by