read
Description
data = read(
reads the number of values specified by peripheral
,count
)count
from the I2C peripheral
device peripheral
and returns the data as a row vector of doubles. The
function suspends MATLAB® execution until the specified number of values is read.
data = read(
reads the number of values specified by peripheral
,count
,datatype
)count
in the form specified by
datatype
and returns the data. The datatype
argument is a character vector of a standard MATLAB data type. For all numeric datatype
types,
data
is a row vector of double values.
Examples
Input Arguments
Version History
Introduced in R2023a
See Also
device
| write
| readRegister
| writeRegister