how can i change the size of the grid to be small like this?
1 view (last 30 days)
Show older comments
How can i make the gird in second one small as first one without increase the size of the square? this the code i used.
x = [0, 0, 0.2, 0.3, 0.4, 0.6, 0.6, 1, 1];
y = [0, 1, 0.5, 0.6, 0.5, 0.3, 0.5, 0, 1];
M =6 ; N = 6 ;
mins = -0.8;
maxs = 1.8;
xx = linspace(mins,maxs,M) ;
yy = linspace(mins,maxs,N) ;
[X,Y]=meshgrid(xx,yy);
bs_ext=[-0.7 -0.7 1.7 1.7;-0.7 1.7 1.7 -0.7]';
[V,G,xy]=VoronoiLimit(x,y,'bs_ext',bs_ext);
grid off
plot(X,Y,'k') ; plot(Y,X,'k');
xlim([-0.9 1.9])
ylim([-0.9 1.9])
Name ='V';
str = strcat(Name,num2str((1:numel(x)).'));
text(x+0.01,y,str);
4 Comments
Answers (0)
See Also
Categories
Find more on Global or Multiple Starting Point Search in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!