View License

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

» Watch video

Highlights from

5.0 | 1 rating Rate this file 10 Downloads (last 30 days) File Size: 9.04 KB File ID: #29028 Version: 1.2
image thumbnail



John Barber (view profile)


14 Oct 2010 (Updated )

Display complex-valued data using domain coloring

| Watch this File

File Information

DCOLOR uses a coloring function to map the angle and modulus of complex data to color. This technique is known as domain coloring, and is an excellent tool to explore the behavior of complex-valued functions.

DCOLOR can produce plots using either a complex matrix or a function handle as the source data. There are several built-in coloring functions as well as the option to supply a user-defined coloring function as a function handle. Additionally, the 'grid' option can create contours of the real and imaginary parts of the complex data. See the help text for details and usage examples.

The following references have more information about visualizing complex-valued functions using domain coloring, including example images:


Shaded Pseudo Color and Domain Coloring inspired this file.

MATLAB release MATLAB 7.10 (R2010a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (1)
22 Apr 2014 LUCA

LUCA (view profile)

dcolor.m is an excellent Matlab script for domain colouring.
It's user-friendly and versatile.

30 Nov 2010 1.1

- Added ability to supply function handle to calculate W
- Added new coloring functions
- Added grid option
- Reduced memory usage
- Renamed from cplxpcolor.m to dcolor.m

15 Feb 2011 1.2

- Added option to return image color data as a matrix of RGB values

Contact us