how can i change the size of the grid to be small like this?

3 次查看(过去 30 天)
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 个评论

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Grid Lines, Tick Values, and Labels 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by