Skip to content

Instantly share code, notes, and snippets.

@RDharmaTeja
Created December 9, 2014 05:57
Show Gist options
  • Save RDharmaTeja/b2b3e59bba8c19f6469a to your computer and use it in GitHub Desktop.
Save RDharmaTeja/b2b3e59bba8c19f6469a to your computer and use it in GitHub Desktop.
function drawPlot(boxWidth,boxHeight,overLap)
[X,Y]=main(boxWidth,boxHeight,overLap);
p=1;
q=1;
for i=1:(1-overLap)*boxWidth:512-(overLap)*boxWidth
for j=1:(1-overLap)*boxWidth:512-(overLap)*boxHeight
x=i+(boxWidth*0);
y=j+(boxWidth*0);
u=X(p,q);
v=Y(p,q);
h=quiver(x,y,u,v,6);
set(h,'linewidth',1);
set(h,'MaxHeadSize',3);
%adjust_quiver_arrowhead_size(h, 1.5);
if i==1&&j==1
hold
end
q=q+1;
end
q=1;
p=p+1;
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment