File:Tubular neighborhood.png

原始文件(2,506 × 1,967像素,文件大小:374 KB,MIME类型:image/png


描述 Illustration of en:Tubular neighborhood
来源 Made with en:Matlab
作者 Oleg Alexandrov 03:01, 1 June 2007 (UTC)
授权
(二次使用本文件)
Public domain
 
本PNG 位图使用MATLAB创作.
Public domain 我,本作品著作权人,释出本作品至公有领域。这适用于全世界。
在一些国家这可能不合法;如果是这样的话,那么:
我无条件地授予任何人以任何目的使用本作品的权利,除非这些条件是法律规定所必需的。


Source code (MATLAB)

 

% illustration of tubular neighborhood
function main()

   f=inline('sin(x)', 'x'); % will construct a tubular neighborhood of this curve

   a=0; b=2*pi; N = 100; X = linspace(a, b, N); % consider N points in the interval [a, b]
   Y = f(X); % the curve
   ll = 3; % length of lines perpendicular to the curve
   lls = 0.3; % smaller subsegments
   
   thin_line = 2;
   thick_line = 4;
   
%  will draw lines perpendicular to the graph of Y=f(X) at
%  points separted by length of 'spacing'
   spacing = 0.033;
   M = floor(spacing*N); 

% colors
   red=[0.867 0.06 0.14];
   blue = [0, 129, 205]/256;
   green = [0, 200,  70]/256;
   
   figure(1); clf; hold on; axis equal; axis off;


   % plot the lines
   for k=1:N

	  p = (k-1)*M+2;
	  if p >= N
		 break;
	  end

	  % the normal to the curve at (X(p), Y(p))
	  Normal = [-(Y(p+1)-Y(p-1)), X(p+1)-X(p-1)]; Normal = Normal/norm(Normal);  
	  
	  plot([X(p)-ll*Normal(1), X(p)+ll*Normal(1)], [Y(p)-ll*Normal(2),...
					Y(p)+ll*Normal(2)], 'color', green, 'linewidth', thin_line)

	  plot([X(p)-lls*Normal(1), X(p)+lls*Normal(1)], [Y(p)-lls*Normal(2),...
					Y(p)+lls*Normal(2)], 'color', red, 'linewidth', 0.7*thick_line)

   end

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


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

说明

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

此文件中描述的项目

描繪內容

文件历史

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

日期/时间缩⁠略⁠图大小用户备注
当前2007年6月2日 (六) 05:012007年6月2日 (六) 05:01版本的缩略图2,506 × 1,967(374 KB)Oleg Alexandrovtweak
2007年6月1日 (五) 03:462007年6月1日 (五) 03:46版本的缩略图2,506 × 1,967(367 KB)Oleg AlexandrovTweak.
2007年6月1日 (五) 03:102007年6月1日 (五) 03:10版本的缩略图626 × 492(64 KB)Oleg Alexandrov{{Information |Description=Illustration of en:Tubular neighborhood |Source=Made with en:Matlab |Date= |Author= ~~~~ |Permission=Public domain |other_versions= }} {{PD-self}}
2007年6月1日 (五) 03:092007年6月1日 (五) 03:09版本的缩略图626 × 492(64 KB)Oleg Alexandrov{{Information |Description=Illustration of en:Tubular neighborhood |Source=Made with en:Matlab |Date= |Author= ~~~~ |Permission=Public domain |other_versions= }} {{PD-self}}
2007年6月1日 (五) 03:082007年6月1日 (五) 03:08版本的缩略图626 × 492(82 KB)Oleg Alexandrov{{Information |Description=Illustration of en:Tubular neighborhood |Source=Made with en:Matlab |Date= |Author= ~~~~ |Permission=Public domain |other_versions= }} {{PD-self}}
2007年6月1日 (五) 03:012007年6月1日 (五) 03:01版本的缩略图626 × 492(82 KB)Oleg Alexandrov{{Information |Description=Illustration of en:Tubular neighborhood |Source=Made with en:Matlab |Date= |Author= ~~~~ |Permission=Public domain |other_versions= }} {{PD-self}}

以下页面使用本文件:

全域文件用途

以下其他wiki使用此文件: