Complex Function Visualization (amplitude, phase)

版本 1.0.0.0 (5.5 KB) 作者: Kanghyun
Imaging Complex Functions with a color map
201.0 次下载
更新时间 2018/4/10

查看许可证

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.

引用格式

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

MATLAB 版本兼容性
创建方式 R2017b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Images 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
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.