shading 源代码

渐晕效应是指在光学系统中,当远离光轴的物点成像时,由于光阑的存在,使能够到达像面上的光束逐渐变得窄小起来,结果使离轴的像点逐渐变暗,这个过程叫做渐晕效应。为了使像平面内视场边界清晰,可以把视场光阑放在物平面、物的中间实像位置或像平面上。[1]

收录资源 500 份 全站深度检索
源码文件

[x,y]=meshgrid(-1:0.1:3,-3:0.1:3); z=sin(3*x.*y+2)+x.*y+x+y; surf(x,y,z); shading interp % 用光滑曲面表示目标函数 x0=[1,3]; x=fmincon('c…

源码文件

t=0:0.03:2*pi; y=sin(t.^2); plot(t,y) a=1:32; Z=cwt(y,a,'mexh','plot'); % 绘制绝对值图 surf(t,a,Z); shading flat; axis([0 2*pi,0,…

源码文件

[x,y,z]=sphere(20); subplot(1,2,1); surf(x,y,z);axis equal; light('Posi',[0,1,1]); shading interp; hold on; plot3(0,1,1,'p')…

源码文件

[x,y,z]=sphere(20); colormap(copper); subplot(1,3,1); surf(x,y,z); axis equal subplot(1,3,2); surf(x,y,z);shading flat; axi…

源码文件

[x,y]=meshgrid(-5:0.1:5); z=cos(x).*cos(y).*exp(-sqrt(x.^2+y.^2)/4); surf(x,y,z);shading interp; pause %程序暂停 i…

源码文件

subplot(221) sphere(30) shading flat camlight left camlight right lighting flat title('Flat Mode') axis equal axis off su…

源码文件

[x,y] = meshgrid(-3:1/8:3); z = peaks(x,y); surfl(x,y,z); shading interp %着色处理 colormap(gray); …

源码文件

%exm07331_1.m clf,shg [X0,Y0,Z0]=sphere(30); X=2*X0;Y=2*Y0;Z=2*Z0; surf(X0,Y0,Z0); shading interp hold on, mesh(X,Y,Z), co…

源码文件

%exm07523_1.m clf; Z=peaks(50); colormap(jet) figure(1),surf(Z) figure(2),surf(Z),shading flat figure(3),surf(Z),shading int…

源码文件

%exm0782_2.m clf,shg x='cos(s)*cos(t)';y='cos(s)*sin(t)';z='sin(s)'; ezsurf(x,y,z,[0,pi/2,0,3*pi/2]) % view(17,40);shading i…