write
Write data to UDP socket
Syntax
Description
write(
sends the vector of values in u,data,destinationAddress,destinationPort)data to the specified IP
destinationAddress and destinationPort, using the
default datatype precision of uint8. The function
waits until the requested number of values are written to the UDP socket, or until a timeout
occurs.
write( sends the
vector of values in u,data)data to the last used
destinationAddress and destinationPort, using the
default datatype precision of uint8. If you do not
specify destinationAddress and destinationPort in a
previous call to write or writeline for the UDP
socket u, this syntax throws an error.
write(
sends the vector of values in u,data,datatype)data using the specified
datatype precision, regardless of the actual type of
data.
write(
sends the vector of values in u,data,datatype,destinationAddress,destinationPort)data using the specified
datatype, destinationAddress, and
destinationPort.
Examples
Input Arguments
Version History
Introduced in R2020b