Read data from remote host over TCP/IP
read(t)
reads all available bytes of data
from tcpclient
object t
connected
to the remote host and returns the data. The number of values read
is determined by the BytesAvailable
property.
For any read or write operation, the data type is converted
to uint8
for the data transfer. It is then converted
back to whatever data type you set if you specified another data type.
read(t,
reads
the specified number of values, size
)size
, from tcpclient
object t
connected
to the remote host and returns the data. If size
is
greater than the object's BytesAvailable
property,
then the function waits until the specified amount of data is read
or the timeout
is reached.
read(t,
reads
the specified number of values, size
,datatype
)size
, with the
specified precision, datatype
, from tcpclient
object t
connected
to the remote host and returns the data. The datatype
argument
is a character vector of a standard MATLAB® data type.
For any read or write operation, the data type is converted
to uint8
for the data transfer. It is then converted
back to whatever data type you set if you specified another data type.