This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.


List of serial ports connected to your system





seriallist returns a list of all serial ports on a system. The list includes virtual serial ports provided by USB-to-serial devices and Bluetooth Serial Port Profile devices. This provides a list of the serial ports that you have access to on your computer and could use for serial port communication.


collapse all

The seriallist function displays a list of all serial ports on a system.

Display available serial ports.

ans = 

  1×2 string array

  "COM1"    "COM3"

You can now create a serial object and communicate over the serial port.

Introduced in R2017a