Can somebody assist me with the Mathlab source code to plot 9x9 grids and place sensors in each grid?

1 次查看(过去 30 天)
Can somebody assist me with the Mathlab source code to plot 9.9 grids and place sensors in each grid?

回答(1 个)

KSSV
KSSV 2022-8-3
x = 1:9 ;
y = 1:9 ;
[X,Y] = meshgrid(x,y) ;
figure
hold on
plot(X,Y,'r',X',Y','r',X,Y,'.k')
  3 个评论

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Graphics Objects 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by