Quantcast
Channel: Programmers Heaven Forums RSS Feed
Viewing all articles
Browse latest Browse all 2703

Graphical representation of Ping

$
0
0
Hello ,

I hope anyone can answer this question!!

I want to represent ping result of an IP address using matlab in a graphical way .i am pinging the IP:192.168.1.1 using this command : [status, result] = dos('ping 192.168.1.1', '-echo') and getting the following :

>>result
result =

Pinging 192.168.1.1 with 32 bytes of data:

Reply from 192.168.1.1: bytes=32 time=2ms TTL=64

Reply from 192.168.1.1: bytes=32 time=4ms TTL=64

Reply from 192.168.1.1: bytes=32 time=10ms TTL=64

Reply from 192.168.1.1: bytes=32 time=8ms TTL=64

Ping statistics for 192.168.1.1: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),

Is there any way to take the time variable that is inside the result and plot a graph so the output of the graph looks close to this :

TIME

10ms| *
8ms| *
6ms|
4ms| *
2ms| *
-|-----------------------> PING NUMBER
1st 2nd 3rd 4th

Viewing all articles
Browse latest Browse all 2703

Trending Articles