How to display the result of dt1 an dt2 after the simulation using NS2
We can determine the the distance between two mobile nodes based on X, Y coordinate values using euclidean formula.
assume we have two node i and j they are connected each other. at t1 time position coordinate of node i is (Xit1, Yit1) and position coordinate of node j is (Xjt1, Yjt1). So the distance between the node i and j at time t1 is:
dt1=√(〖(X_jt1-X_it1)〗^2+〖(Y_jt1-Y_it1)〗^2 )
And let after some time at t2 position of the node i is (Xit2, Yit2) and position of node j is (Xjt2, Yjt2). So the distance between the node i and j at time t2 is:
dt2=√(〖(X_jt2-X_it2)〗^2+〖(Y_jt2-Y_it2)〗^2 )
Now, My question is
How to display the result of dt1 an dt2 after the simulation using NS2
|