File:Surface vectors.png

页面内容不支持其他语言。
這個文件來自維基共享資源
维基百科,自由的百科全书

原始文件(1,455 × 807像素,文件大小:80 KB,MIME类型:image/png


描述
العربية: مجال متجه لسطح.
Català: Un camp vectorial sobre una superfície.
English: A vector field on a surface.
Esperanto: Vektora kampo sur surfaco.
ភាសាខ្មែរ: ដែនវ៉ិចទ័រនៅលើផ្ទៃ.
中文:曲面上的向量场。.
来源 自己的作品
作者 Oleg Alexandrov
 
本PNG 位图使用MATLAB创作.
Public domain 我,本作品著作权人,释出本作品至公有领域。这适用于全世界。
在一些国家这可能不合法;如果是这样的话,那么:
我无条件地授予任何人以任何目的使用本作品的权利,除非这些条件是法律规定所必需的。

Source code (MATLAB)

 

% illustration of a vector field on a surface
figure(1); clf; hold on; axis equal; axis off;
view(-12, 20) % viewing angle

% initial data
f=inline('0.4*(1-(X.^2+1.1*Y.^2))'); % the function to be plotted
fx=inline('-2*X', 'X', 'Y'); fy=inline('-2.2*Y', 'X', 'Y');

Lx1=0; Lx2=1; Ly1=-1; Ly2=1; % the domain of f is the box [Lx1 Lx2] x [Ly1 Ly2]

% plot the surface
N=50; [X, Y]=meshgrid(Lx1:1/N:Lx2, Ly1:1/N:Ly2); Z=f(X, Y); % X and Y
                 surf(X, Y, Z, 'FaceColor','red', 'EdgeColor','none', ...
                          'AmbientStrength', 0.3, 'SpecularStrength', 1, 'DiffuseStrength', 0.8);

% create and plot a vector field (rather arbitrarily)
lw=1.4; % width of vectors
N=3; [X, Y]=meshgrid(Lx1:1/N:Lx2, Ly1:1/N:Ly2); Z=f(X, Y); % X and Y
Vx=fy(X, Y); Vy=-0.5*fx(X, Y); Vz=3+0*Vx;
H=quiver3(X, Y, Z, Vx, Vy, Vz); % draw the normals
set(H(1), 'linewidth', lw); set(H(2), 'linewidth', lw);

camlight headlight; lighting phong; % make nice lightning

saveas(gcf, 'surface_vectors.eps', 'psc2');
print('-dpng',  '-r300', 'surface_vectors.png') % save to file.
此math图片可使用矢量图形重新创建为SVG文件。这具有很多好处;更多信息请参见共享资源:待清理媒体。如果存在此图片的SVG格式,请将其上传,然后将此模板替换为{{vector version available|新图片名称}}


建议您将SVG命名为“Surface vectors.svg”,这样在使用Vector version available(或Vva)模板时就不需要填写新图片名称参数。

说明

添加一行文字以描述该文件所表现的内容

此文件中描述的项目

描繪內容

文件历史

点击某个日期/时间查看对应时刻的文件。

日期/时间缩⁠略⁠图大小用户备注
当前2007年4月23日 (一) 22:412007年4月23日 (一) 22:41版本的缩略图1,455 × 807(80 KB)Oleg Alexandrov{{Information |Description= |Source= |Date= |Author= }} {{PD-self}}

以下2个页面使用本文件:

全域文件用途

以下其他wiki使用此文件: