how can I display number on city locations ?
4 ビュー (過去 30 日間)
古いコメントを表示
figure('Name','City Locations','Numbertitle','on');
plot(xy(:,1),xy(:,2),'bo');
........... ........
......... ..........
figure(pfig);
route = best_route([1:n 1]);
plot(xy(route,1),xy(route,2),'b.-');
title(sprintf('Total Distance = %1.4f, Iteration = %d',min_dist,iter));
0 件のコメント
回答 (1 件)
the cyclist
2013 年 4 月 23 日
編集済み: the cyclist
2013 年 4 月 23 日
You could use the text() function.
>> doc text
for details.
参考
カテゴリ
Help Center および File Exchange で Traveling Salesman (TSP) についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!