Read data from serial port
reads the number of values specified by data
= read(device
,count
,precision
)count
, with the data type
specified by precision
, from the device connected to the serial port
device
. For all numeric precision
types,
data
is a row vector of double values. For the text type
precision
values of 'char'
or
'string'
, data
is of the specified type.
The function blocks MATLAB and waits until the specified number of values are read from the serial port, or a timeout occurs.