I am a Postdoctoral Research Fellow with The SUTD-MIT International Design Centre (IDC), Singapore University of Technology and Design (SUTD). My research topic is about protocol and algorithm design, resource allocation and localisation in wireless sensor network, UAV network and Ad Hoc network. I also enjoy the mobile programming (Android and Objective-C) and web server development. Thanks for sharing.
Showing posts with label NS2 Nodes Color. Show all posts
Showing posts with label NS2 Nodes Color. Show all posts
Jan 4, 2012
Set nodes` color in NS2 simulation program
This is a pretty tricky way to hit the target. And we can change the color at any time.
set ns [new Simulator]
set node [$ns node 0]
$ns at 0.0 "$node color red"
$ns at 1.0 "$node color blue"
Subscribe to:
Posts (Atom)