File Exchange

image thumbnail

Schwarz-Christoffel Toolbox

version 1.1 (420 KB) by

Computes conformal maps to polygons, allowing easy solution of Laplace's equation.



The Schwarz-Christoffel transformation is a recipe for a conformal map to a region bounded by a polygon. They can be computed to very high accuracy in little time. These maps can make certain Laplace boundary value problems trivial to solve on such domains.
p = polygon([0 i -1+i -1-i 1-i 1]); % L-shaped region
f = diskmap(p); % find map
plot(f) % visualize it
phi = lapsolve(p,[1 nan 4 3 nan 2]); % solve a BVP
[t,x,y] = triangulate(p);
trisurf(t,x,y,phi(x+i*y)); % see it

Comments and Ratings (15)

Sam Kim

there are not many documentation

Samina Kosar


i am interested to draw like this in SC-Toolbox, can anyone help me in this regards, the example explained about is for bounded polygon, could you please describe the same map for my figer. please dont take it as dashes, its line two lines having angle 90 degree.

Anton Semechko

Anton Semechko (view profile)

This implementation saved me a bunch of time. Thanks a lot!

P.S. - Any one who needs documentation for this toolbox can find it on Toby's website (

Ali A

Ali A (view profile)

Izaak Beekman

Indispensable! Saved so much time using this rather than coding up everything in Fortran!

I have sent to you an example to the polygone where i have severe crowding. Could you give me answer and your opignon.

I have used the toolbox and it is excellent.
I have some problems with crowding for some polygon.
I will send you the polygon where i have the problem.

Al van Deursen

I used the software on many instances and found its results in excellent agreement with practical experiments. Wrote a few scientific papers using the results.
Documentation on Driscoll's personal webpage was more than sufficient for somebody with knowledge in basic calculus and Schwarz - Christoffel analysis.

pepe sanchez


lv dc

3x, i need test it first.

Francisco Tejo

Paolo Novati



Now accessing the Github repository.

Fixes an incompatibility (bug?) with matlab release 2007a.

Changes for compatability with MATLAB 6.5.

New routine for solving Laplace's equation.

Changes for compatability with MATLAB 6.5.

New routine for solving Laplace's equation.

Minor bug fixes. No enhancements.

MATLAB Release
MATLAB 7.4 (R2007a)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video