TCPIP multiple array sending

Is possible to send multiple fixed size array from a server over tcpip then receive each array at a time and display it at the client side? If so any chance showing an example of how to implement this?

回答 (1 件)

Walter Roberson
Walter Roberson 2016 年 3 月 21 日

0 投票

Use (:) to convert the arrays to vector, concatenate the vectors to make one large vector, send the overall vector. On the other side, fread() with a count that is the size of the first array, then fread() with a count that is the size of the second array, and so on, pulling out one array at a time.

質問済み:

2016 年 3 月 21 日

回答済み:

2016 年 3 月 21 日

Community Treasure Hunt

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

Start Hunting!

Translated by