Generates rectangular mesh.
You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
This function generates rectangular mesh accoarding to grid set by vectors xx and yy.
function [Nodes, Rectangles]=Rectangles_Mesh(xx,yy)
where inputs
xx and yy are vectors for grids of size (Nx,1) and (Ny,1), respectively.
output:
Nodes (Nx*Ny,2) is a matrix of x-coordinate of y-coordinates of the mesh nodes.
Rectangles((Nx-1)*(Ny-1),4) is a matrix of nodes connectivity for each element in counter clockwise direction.
Cite As
Ayad Al-Rumaithi (2026). Generate Rectangular Mesh (https://www.mathworks.com/matlabcentral/fileexchange/74656-generate-rectangular-mesh), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.0.1 (1.17 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
