image thumbnail

Generate Rectangular Mesh

version 1.0.0 (1.14 KB) by Ayad Al-Rumaithi
Generates rectangular mesh.


Updated 21 Mar 2020

View License

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.
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 (2022). Generate Rectangular Mesh (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2017b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Community Treasure Hunt

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

Start Hunting!