MATLAB Answers


Boundary conditions for pdenonlin

Asked by Michael
on 16 Jul 2013

In order to solve nonlinear system of pde's I need to supply, together with the pde specification, a boundary condition file or matrix:


where b is the Boundary condition input, p,e,t are the mesh input, and c,a,f are the coefficients.

Matlab enable us to get the boundary conditions matrix Q,G,H,R by


What are these matrix uses for? Are they an alternative input for pde solver? if so, how?




No products are associated with this question.

1 Answer

Answer by Deepak Ramaswamy on 19 Jul 2013
 Accepted answer

Q,G,H,R are alternative ways to specify boundary conditions for assempde() (static & linear case). Typically you would use them along with the matrix representations of the PDE coefficients such as: K,M,F.

pdenonlin doesn't read the matrix form. As to why one would use the matrix form even for linear cases, they are useful in some cases. I've used them for efficiently solving 4th order PDEs, applying periodic and other global BCs and also creating state space models.

for info on how to specify "b", check out



Join the 15-year community celebration.

Play games and win prizes!

Learn more
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!