how can I display number on city locations ?
2 次查看(过去 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 中查找有关 Genetic Algorithm 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!