How we will create a UDP packet in Matlab?

How we will create a UDP packet in matlab. Does matlab have built in function or not. Kindly explain with details.

 Accepted Answer

Walter Roberson
Walter Roberson on 8 Feb 2013
Edited: Randy Souza on 12 Feb 2013
You can use the Instrument Control Toolbox. Note that this will not allow you to set all the header values in the UDP packet, just the payload (and the source and destination ports.)
If you do not have the Instrument Control Toolbox, then it is suggested that you use the File Exchange contribution TCP/UDP/IP.

4 Comments

Dear walter Roberson Thank you very much for your kind reply. I want to store voice of 20ms in UDP. I also want to use RTP alongwith for proper sequence number. After that I will send those packets from sender to receiver. Both the sender and receiver will be on the same machine.
Those sound like payload content, as UDP does not have sequence numbers as part of the protocol.
yes sir you are right. UDP have no sequence number. thats why we are using RTP for sequence number.
Then the routines I noted above should be fine.

Sign in to comment.

More Answers (0)

Categories

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!