Main Content
readbinblock
Description
reads a binblock of data from the remote host specified by the TCP/IP client
data
= readbinblock(t
)t
and returns the data as a row vector of doubles. The function
suspends MATLAB® execution until the first full binblock is read or a timeout occurs.
The function discards and clears any data in the buffer before the recognized binblock. If no binblock is found the operation times out, returns an empty value, and discards all the data in the buffer. An error in the operation also flushes the data buffer.
Examples
Input Arguments
Version History
Introduced in R2020b
See Also
tcpclient
| read
| readline
| writebinblock