MATLAB: Geometry from 2D [p,e,t] mesh data for PDE equation

geometryMATLABmesh dataPartial Differential Equation Toolboxpde

I want to solve a PDE equation on a specific mesh using assempde
From my polygonal geometry I used mesh2D from the matlab file exchange to create my mesh and then I "manually" rewrote them so they are on the same format as the canonical 2D matlab mesh data.
So here I am with my [p, e, t] data which displays nicely when I call pdemesh(p,e,t) Then I'll write my pdebound function to apply my boundary conditions but then I wonder :
How do I give that information to assempde ?
Indeed I need to create a model using createpde and then attach it my geometry.
I've seen that there's a function called geometryFromMesh but the documentation says that it's for 3D geometry whereas mine is only 2D.
I can't figure out the workaround.. Any ideas ?
Thank you.

Best Answer

Another case of "Didn't read that line of the documentation".
The parameters can be given to assempde like so
u = assempde(b,p,e,t,c,a,f)
With b the boundary condition matrix.
Related Question