write
R2026bWrite data to serial device
Description
Add-On Required: This feature requires the MATLAB Support Package for Arduino Hardware add-on.
write(
writes data to the serial device.serialdevObj,dataIn)
write(
also specifies the precision.serialdevObj,dataIn,precision)
Examples
Input Arguments
More About
Alternative Functionality
App
Use Arduino Explorer to configure serial device and then write data to it. You can use the app in the installed version of MATLAB and MATLAB Online™. For more information, see Connect to Serial Device Using Arduino Explorer App.
Version History
Introduced in R2019b