Generating a square mesh
Mostra commenti meno recenti
I have found a book that teaches the solution of PDEs and plots the results.
I want to change the plot to a square mesh instead of traingular mesh.
This the code they use:
tri = delaunay(x,y);
trisurf(tri,x,y,u_fem);
which generates something like this:

How do I make sure that the mesh generated does not have those diagonal lines between the squares? and then plot that?
*using MATLAB online
Let me know if the entire code is needed, its in multiple bunches
Thanks
1 Commento
Bruno Luong
il 16 Nov 2022
Modificato: Bruno Luong
il 16 Nov 2022
Finite Elements methods (FEM) must work on triangular mesh, so it must have those diagonals to form set of triangles.
This piece of code show exactly the mesh as it is. This is a good visualization.
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Geometry and Mesh in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
