Complex Function Visualization (amplitude, phase)

Version 1.0.0.0 (5.54 KB) by Kanghyun
Imaging Complex Functions with a color map
193 Downloads
Updated 10 Apr 2018

View License

This function provides a visualization tool of complex functions and 2D-real vector field.
IMAGECF(Z)
IMAGECF(Z,Zmax)
IMAGECF(X+iY,Z)
IMAGECF(X+iY,Z,Zmax)
IMAGECF(ax,___)
IMAGECF(___, option) color of zero. 'w'-white 'k'-black
Example1>
[x,y] = meshgrid(-2:.1:2);
z = x + 1i*y;
imagecf(x+1i*y, z.^2+1,1,'k');
Example2> Mapping real 2D vector field
[x,y] = meshgrid(-2:.1:2);
vx = -y;
vy = x;
imagecf(x+1i*y, vx+1i*vy);
One may modify the code line 134-137 for colorset changes.

Cite As

Kanghyun (2024). Complex Function Visualization (amplitude, phase) (https://www.mathworks.com/matlabcentral/fileexchange/66850-complex-function-visualization-amplitude-phase), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2017b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Images in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0

line 159-160
Malfunction of an axes handle is improved.

line 162-163 updated
cax=newplot(cax);
cax.Parent.CurrentAxes = cax;
Summary & description updates.