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 graphic使用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')
本圖片是以PNG、GIF或JPEG格式上傳。然而,其中包含的資料或訊息,應該重新建立成可縮放向量圖形SVG)檔案,以更有效率或更準確的方式儲存。如有可能,請上傳本圖片的SVG格式版本。在上傳之後,請修改維基各姊妹計畫中所有使用舊版圖片的條目(列在圖像連結章節中),替換為新版圖片,並在舊圖片的描述頁中加入{{Vector version available|新圖片名稱.svg}}模板,同時移除本模板。

說明

添加單行說明來描述出檔案所代表的內容

在此檔案描寫的項目

描繪內容

檔案歷史

點選日期/時間以檢視該時間的檔案版本。

日期/時間縮⁠圖尺寸使用者備⁠註
目前2007年6月2日 (六) 05:01於 2007年6月2日 (六) 05:01 版本的縮圖2,506 × 1,967(374 KB)Oleg Alexandrovtweak
2007年6月1日 (五) 03:46於 2007年6月1日 (五) 03:46 版本的縮圖2,506 × 1,967(367 KB)Oleg AlexandrovTweak.
2007年6月1日 (五) 03:10於 2007年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:09於 2007年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:08於 2007年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:01於 2007年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 使用了這個檔案: