MATLAB: HOW TO GENERATE REGULAR SQUARE MESHES INSTEAD OF IRREGULAR TRIANGULAR MESHES, OVER A 2D REGION TO SOLVE PARTIAL DIFFERENTIAL EQUATION.

MATLABmeshpde toolbox

I have an image in Matlab that defines the region over which I want to solve a PDE. That is,the image boundary is the 2D region over which I want to solve my PDE. The default mesh generated using initmesh(); is of irregular orientation, triangular shape and the number of mesh points cannot be adjusted. I would like to custom build a regular square type mesh such that the number of mesh points is equal to the number of pixels in the image and that each mesh points geographically corresponds to each pixels in the image. CAN ANYONE HELP ME OUT????… Urgent… THANKS!! in Advance.

Best Answer

I'm afraid that you cannot use a rectangular mesh with PDE Toolbox. The toolbox uses triangular meshes only.
Alan Weiss
MATLAB mathematical toolbox documentation
Related Question