Complex Function Visualization (amplitude, phase)

Imaging Complex Functions with a color map

您现在正在关注此提交

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 (2026). Complex Function Visualization (amplitude, phase) (https://ww2.mathworks.cn/matlabcentral/fileexchange/66850-complex-function-visualization-amplitude-phase), MATLAB Central File Exchange. 检索时间: .

类别

Help CenterMATLAB Answers 中查找有关 Images 的更多信息

一般信息

MATLAB 版本兼容性

  • 兼容任何版本

平台兼容性

  • Windows
  • macOS
  • Linux
版本 已发布 发行说明 Action
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.