MATLAB supports serial devices including RS-232 when using Instrument Control Toolbox.
This MATLAB code example shows you how to communicate with a serial device.
This MATLAB code example was automatically generated with a device configuration tool provided by the toolbox. Type "tmtool" to start this tool. This is a basic code example to show you how to get started using MATLAB to communicate with a serial device.