Contour from mesh or grid
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I'm doing some work using FEM (Finite Element Method) with triangular elements.
Questions will remain simple for those who have no clue what FEM is.
I got a m*2 matrix "Nodes" with x,y (for each point/node), a n*3 matrix "Elements" each line representing a triangle (element) referencing 3 points from previous matrix and finally i got a m*1 vector "U" that refers to z index of each node.
With "Nodes" and "Elements" i triplot the mesh, adding "U" i can trisurf it and i'd like to show that data with contour() too. But i get an error saying that Z must be a m*2. Any way arround this?
2 Kommentare
Akzeptierte Antwort
KSSV
am 11 Mai 2016
Have a look in the following function: http://in.mathworks.com/matlabcentral/fileexchange/10408-contours-for-triangular-grids
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Contour Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!