二维高斯函数(中间暗),正条纹图和圆形条纹图

二维高斯函数 %代码 FGS = @(x,y)exp(-(sqrt(x.^2+y.^2)-70).^2./(2*30.^2));%环半径70F2 = fgs(xp,yp);图像c(F2 ......

二维高斯函数

%code

fgs = @(x,y)exp(-(sqrt(x.^2+y.^2)-70).^2./(2*30.^2)); %圆环半径70
F2 = fgs(xp,yp);
imagesc(F2)

显示:

二维高斯函数(中间暗)、正条纹图与环形条纹图-风君子博客

二维正弦条纹图:

%code 三个相位

clc,clear
[xp,yp] = meshgrid(-100:100,-100:100);
f = @(x,y,i)0.5+0.5*cos(2.*pi.*1/30*x - i/3*2*pi);
for i =1:3
F1(:,:,i) = f(xp,yp,i);
end
subplot(221)
imagesc(F1(:,:,1))
subplot(222)
imagesc(F1(:,:,2))
subplot(223)
imagesc(F1(:,:,3))
subplot(224)
plot(F1(100,:,1))

显示:

二维高斯函数(中间暗)、正条纹图与环形条纹图-风君子博客

环形条纹图:

%code 三个相位

clc,clear
[xp,yp] = meshgrid(-100:100,-100:100);
f = @(x,y,i)cos(2.*pi.*1/30.*sqrt(x.^2+y.^2)-i/3*2*pi);
for i =1:3
F1(:,:,i) = f(xp,yp,i);
end
subplot(221)
imagesc(F1(:,:,1))
subplot(222)
imagesc(F1(:,:,2))
subplot(223)
imagesc(F1(:,:,3))
subplot(224)
plot(F1(100,:,1))

显示:

二维高斯函数(中间暗)、正条纹图与环形条纹图-风君子博客