bcMatrix, boundary condition Matrix
No License
% ====== Providing boundary conditions matrix bcm =========
% ======= (system case, e.g. for 2D plane-strain problem, 2 PDEs for 2 dependent variables) =====
%
% A crutial step for solving boundary value problems (BVP) is to define the boundary conditions (BCs).
% In a recent submission,
% "Solve boundary value probelm by command lines," an simple example is
% given for the scalar case (1 PDE for 1 dependent variable)
% subject to Neumann BC only (sub-function "bcNeumann" in that submission).
% I now try to show how to construct the BC
% matrix for system case (Dimession N, i.e. N PDEs for N dependent variables).
% Dirichlet, Neumann, and mixed BCs are considered.
% A more complex example showing how to use this function will be provided
% soon
%
% ===== By Hongxue Cai (h-cai@northwestern.edu) =======
Cite As
Hongxue Cai (2026). bcMatrix, boundary condition Matrix (https://uk.mathworks.com/matlabcentral/fileexchange/9997-bcmatrix-boundary-condition-matrix), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- Mathematics and Optimization > Partial Differential Equation Toolbox > General PDEs > Boundary Conditions >
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
