Rank: 763 based on 139 downloads (last 30 days) and 10 files submitted
photo

Ankur Pawar

E-mail

Personal Profile:

http://sites.google.com/site/workofap/

Professional Interests:
Graphics

 

Watch this Author's files

 

Files Posted by Ankur View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
01 Oct 2012 Screenshot Animations Some animation in MATLAB Author: Ankur Pawar animation, graphics, 3d, surface plot, belousov zhabotinsky ..., epitrochoid 22 3
29 Nov 2011 Screenshot Points On Line Linearly spaced points between two point and ,point in Convex Hull test. Author: Ankur Pawar points on line, line, 2d, 3d, geometry, linspace 10 2
01 Sep 2010 Screenshot Nova Fractal Nova fractal,Glynn set fractal,other Julia set fractal . Author: Ankur Pawar nova fractal, fractal, graphics, 2d, 2d graphics, glynn set fractal 15 0
18 Feb 2010 Screenshot Attractor Quadratic attractor,Clifford attractor,Peter De Jong generated using histogram method. Author: Ankur Pawar strange attractor, attractor, ifs, quadratic attractor, chaos, curves 13 1
  • 2.0
2.0 | 1 rating
26 Nov 2009 Screenshot domain coloring Visualization of complex function. Author: Ankur Pawar domain coloring, complex function, mathematics, function, complex, graphics 17 0
Comments and Ratings by Ankur View all
Updated File Comments Rating
01 Mar 2012 hilbert3(n) function [x,y,z] = hilbert3(n) computes 3D coordinates of points in n-th order Hilbert curve. Author: Ivan Martynov

08 Dec 2011 export_fig Exports figures nicely to a number of vector & bitmap formats. Author: Oliver Woodford

Very useful function.

08 Dec 2011 Linear Subdivision A simple m file for the triangle mesh subdivision using linear interpolation. Author: Jesús P. Mena-Chalco

Excellent function.I use it very frequently . I also created polyhedron projections using this function .

30 Oct 2011 Points On Line Linearly spaced points between two point and ,point in Convex Hull test. Author: Ankur Pawar

It is generalized but not fast.

tic,points = pointsOnLine([2 4 5],[9 9 9],500);toc
Elapsed time is 0.000351 seconds

tic,points = interp1([0;1], [2 4 5;9 9 9], linspace(0,1,500));toc
Elapsed time is 0.001596 seconds

04 Aug 2009 Fractal Explorer The whole Chaos in a single program. Author: Laurent Cavin

Really good work

Comments and Ratings on Ankur's Files View all
Updated File Comment by Comments Rating
02 Oct 2012 Animations Some animation in MATLAB Author: Ankur Pawar Semechko, Anton

Hi Ankur,

your submission inspired this:

http://www.mathworks.com/matlabcentral/fileexchange/38473-belousov-zhabotinsky-reaction-on-2-manifold

01 Oct 2012 Animations Some animation in MATLAB Author: Ankur Pawar Semechko, Anton

Hi Ankur. I made some changes to your BZanimation script that make it run much faster. Specifically, I vectorized two of the innermost loops using linear indices.

function BZreaction
%BZreaction animation
%Belousov-Zhabotinsky Reaction animation
%This MATLAB code is converted from Processing code available in this link
%http://www.aac.bartlett.ucl.ac.uk/processing/samples/bzr.pdf

%version 2. Corrected the drift of pixels as suggested
% by Jonh.

xres=256; %x resolution
yres=256; %y resolution

a=rand(xres,yres,2);
b=rand(xres,yres,2);
c=rand(xres,yres,2);
p = 1;
q = 2;
img=zeros(xres,yres,3);

mm = mod((1:xres+2)+xres,xres)+1;
nn = mod((1:yres+2)+yres,yres)+1;
[mm,nn]=meshgrid(mm,nn);
idx=sub2ind([yres xres],nn(:),mm(:));
idx=reshape(idx,[yres xres]+2);

figure
for k=1:1000

c_a = zeros(xres,yres);
c_b = zeros(xres,yres);
c_c = zeros(xres,yres);

for m=1:xres
for n=1:yres

idx_temp=idx(m:m+2,:);
idx_temp=idx_temp(:,n:n+2);
idx_temp=idx_temp(:);
if p==2
idx_temp=idx_temp+(xres+0)*(yres+0);
end

c_a(m,n) =c_a(m,n)+ sum(a(idx_temp));
c_b(m,n) =c_b(m,n)+ sum(b(idx_temp));
c_c(m,n) =c_c(m,n)+ sum(c(idx_temp));

end
end

%correction of pixel drift
c_a = circshift(c_a,[2 2]);
c_b = circshift(c_b,[2 2]);
c_c = circshift(c_c,[2 2]);

c_a =c_a/ 9.0;
c_b =c_b/ 9.0;
c_c =c_c/ 9.0;

a(:,:,q) = double(uint8(255*(c_a + c_a .* (c_b - c_c))))/255;
b(:,:,q) = double(uint8(255*(c_b + c_b .* (c_c - c_a))))/255;
c(:,:,q) = double(uint8(255*(c_c + c_c .* (c_a - c_b))))/255;

img(:,:,1)=c(:,:,q);
img(:,:,2)=b(:,:,q);
img(:,:,3)=a(:,:,q);

if p == 1
p = 2; q = 1;
else
p = 1; q = 2;
end

image(uint8(255*hsv2rgb(img)))
axis equal off
drawnow
end

11 Mar 2012 Animations Some animation in MATLAB Author: Ankur Pawar Bullinga, John

The BZ animation has a drift of two pixels up and left per cycle that may be corrected by adding

c_a = circshift(c_a,[2 2]);
c_b = circshift(c_b,[2 2]);
c_c = circshift(c_c,[2 2]);

before the 'c_a =c_a/ 9.0;' line

30 Oct 2011 Points On Line Linearly spaced points between two point and ,point in Convex Hull test. Author: Ankur Pawar Pawar, Ankur

It is generalized but not fast.

tic,points = pointsOnLine([2 4 5],[9 9 9],500);toc
Elapsed time is 0.000351 seconds

tic,points = interp1([0;1], [2 4 5;9 9 9], linspace(0,1,500));toc
Elapsed time is 0.001596 seconds

18 Oct 2011 Points On Line Linearly spaced points between two point and ,point in Convex Hull test. Author: Ankur Pawar Sven

Please note that this function can be generalised with a speedup by:

points = interp1([0;1], [point1;point2], linspace(0,1,numPoints));

Contact us