Info

この質問は閉じられています。 編集または回答するには再度開いてください。

how to plot the data on the iamge

1 回表示 (過去 30 日間)
singh
singh 2015 年 6 月 16 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
n=5
x=rand(1,n)*n;
y=rand(1,n)*n;
node_no=(1:n)';
plot(x,y,'color','k')
text(x,y,num2str(node_no))
how to plot the nodes on the image

回答 (1 件)

Image Analyst
Image Analyst 2015 年 6 月 16 日
You have to specify a marker in your plot() call:
plot(x, y, 'k*', 'MarkerSize', 20);
  2 件のコメント
singh
singh 2015 年 6 月 16 日
output of the coding is plot(x, y, 'k*', 'MarkerSize', 20); but i need below image plotted nodes are on the road image.
Joseph Cheng
Joseph Cheng 2015 年 6 月 16 日
hold on
should work

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by