나는 이 작품의 저작권자로서, 이 작품을 퍼블릭 도메인으로 모두에게 공개합니다. 이 공개 선언은 전 세계적으로 유효합니다. 만약 저작권의 포기가 법률적으로 가능하지 않은 경우, 나는 이 작품을 법적으로 허용되는 한도 내에서 누구나 자유롭게 어떤 목적으로도 제한없이 사용할 수 있도록 허용합니다.
% illustration of an indicator function in two dimensionsfunctionmain()% the number of data points. More points means prettier picture.N=400;% a function close to what we want, but not smoothZ=get_step_function(N);% plot the surfacefigure(2);clf;holdon;axisequal;axisoff;scale=100;surf(scale*Z);% make the surface beautifulshadinginterp;colormapautumn;% add in a source of lightcamlight(-50,54);% viewing angleview(-40,38);% save as pngprint('-dpng','-r200','Indicator_function_illustration.png');% get a function which is 1 on a set, and 0 outside of itfunctionZ=get_step_function(N)XX=linspace(-1.5,4,N);YY=linspace(-4,4,N);[X,Y]=meshgrid(XX,YY);c=2;k=1.2;shift=10;Z=(c^2-X.^2-Y.^2).^2+k*(c-X).^3-shift;Z=1-max(sign(Z),0);
이 그림 파일은 벡터 SVG 형식으로 다시 만들어야 합니다. SVG의 장점에 대해서는 여기(영어)를 참고해 주십시오. 만약 이 그림의 SVG 버전이 이미 존재한다면 이 틀을 {{vector version available|새 파일 이름.svg}}으로 대체해 주십시오.
{{Information |Description=Illustration of an en:Indicator function. |Source=self-made with MATLAB, source code below |Date=~~~~~ |Author= Oleg Alexandrov }} <pre><nowiki> % illustration of an indicator function in two dime