[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')…
shading 源代码
渐晕效应是指在光学系统中,当远离光轴的物点成像时,由于光阑的存在,使能够到达像面上的光束逐渐变得窄小起来,结果使离轴的像点逐渐变暗,这个过程叫做渐晕效应。为了使像平面内视场边界清晰,可以把视场光阑放在物平面、物的中间实像位置或像平面上。[1]
[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…
clf; [X,Y,Z]=sphere(40); colormap(jet) subplot(1,2,1);surf(X,Y,Z);shading interp light('position',[2,-2,2],'style','local') lighti…
%**************************************************** %程序:EX506.M %功能:利用电影方式显示动画 %*********************************************…
%********************************************************* %程序:EX414.M %功能:hidden透明使用实例演示 %***********************************…
[x,y] = meshgrid(-3:1/8:3); z = peaks(x,y); surfl(x,y,z); shading interp %着色处理 colormap(gray); …
%《线性代数实验践及MATLAB入门》第二章第五节演示程序二ag251 % 三维绘图和屏幕控制 % 电子工业出版社出版 陈怀琛 龚杰民合著 2005年10月 clf disp('三维曲线'),echo on pause, z=0:0.1:4*p…
%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…