shading 源代码

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

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

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

源码文件

[VIEW] scheme1=Custom,7,4,4,5,4,0,1,15,0,0,0,0,0,0,0,0,0,0,0,0,0 scheme2=Bellevue,27,0,5,4,1,11,0,15,0,0,0,0,0,0,0,0,0,0,0,0,0 …

源码文件

[x,y] = meshgrid(-3:0.1:3,-2:0.1:2); z=(x.^2-2*x).*exp(-x.^2-y.^2-x.*y); ii=(x

源码文件

x=linspace(-1.3,1.3,300); y=x; [X,Y]=meshgrid(x,y); n_iter=30; c=0.27334+0.00742i; tic, W=julia1(X,Y,c,n_iter,2); toc pcolor(…

源码文件

x=linspace(-2,0.5,300); y=linspace(-1.25,1.25,300); [X,Y]=meshgrid(x,y); n_iter=200; c=0; a=2; W=mandelbrot(X,Y,c,a,n_iter); pc…

源码文件

[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…

源码文件

function grph clear [X0,Y0,Z0]=sphere(30); %产生单位球面的三维坐标 X=2*X0;Y=2*Y0;Z=2*Z0; %产生半径为2的球面的三维坐标 surf(X0,Y0,Z0); %画单位球面…

源码文件

clear clc [X0,Y0,Z0]=sphere(30); %产生单位球面的三维坐标 X=2*X0;Y=2*Y0;Z=2*Z0; %产生半径为2的球面的三维坐标 clf subplot(1,2,1); surf(X0…