⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 plotcircle_black.m

📁 beamlet变化的工具箱
💻 M
字号:
%Tool to draw a circle, it is called by RidgeletTiling.m and DrawFig13.m

function plotcircle(r,ax)
if nargin < 2,
	ax = [];
else
	centerx = (ax(1)+ax(2))/2; 
	centery = (ax(3)+ax(4))/2;
	scalex  = (ax(2)-ax(1))/2;
	scaley  = (ax(4)-ax(3))/2;
end
n = 256;
x = zeros(256,1); y = zeros(256,1);
for l=0:256,
	thetal = 2*pi*l ./ n;
	if isempty(ax),
			x(l+1) = cos(thetal).*r;
			y(l+1) = sin(thetal).*r;
	else
			x(l+1) = centerx + cos(thetal).*r .* scalex;
			y(l+1) = centery + sin(thetal).*r .* scaley;
	end		  
end
plot(x,y,'k') 
%% Part of BeamLab Version:200% Built:Friday,23-Aug-2002 00:00:00% This is Copyrighted Material% For Copying permissions see COPYING.m% Comments? e-mail beamlab@stat.stanford.edu%%% Part of BeamLab Version:200% Built:Saturday,14-Sep-2002 00:00:00% This is Copyrighted Material% For Copying permissions see COPYING.m% Comments? e-mail beamlab@stat.stanford.edu%

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -