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 件のコメント
KSSV
KSSV 2022 年 8 月 3 日
@seyfedin bedru You have to accept this answer, if you find it is useful. Not your comment. :)

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeGraphics Objects についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by