Specify the platform-specific serial port name
Port to be the name of a
serial port on your platform.
the physical port associated with the object and the device.
When you create a serial port object,
automatically assigned the port name specified for the
You can configure
Port only when the object
is disconnected from the device. You disconnect an object with the
fclose function. A disconnected
object has a
Status property value of
Port value is determined when the serial
port object is created.
Suppose you create a serial port object associated with serial port COM1.
s = serial('COM1');
The value of the
Port property is
s.Port ans = COM1