Need Help in Placing nodes in graphs with given coordinates as shown in the figure

5 ビュー (過去 30 日間)
I need to plot these nodes with their given coordinates as shown in the figure.

採用された回答

Image Analyst
Image Analyst 2017 年 6 月 11 日
Did you try plot()? You probably did, so what was wrong with it?
xy = [2, 1;
1,2
2,2
3,2
1,3
2,3
3,3
1,4
2,4
3,4]
x = xy(:, 1);
y = xy(:, 2);
plot(x, y, 'b^', 'LineWIdth', 3, 'MarkerSize', 30);
grid on;
axis ij; % Reverse y axis.
  6 件のコメント
Mahmoud Ahmed
Mahmoud Ahmed 2017 年 6 月 11 日
If I want to write RF link over the link between node 2 and 5 .. How can I do this? Thanks for your time
Image Analyst
Image Analyst 2017 年 6 月 11 日
Note how I used text. You can double click text() and figure out how to use it from the help, right? Once you do that, you'll see that you can use something like
text(2.86, 2.5, 'RF Link', 'Color', 'r', 'FontSize', 15);

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeAxis Labels についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by