Get Available COM PORT

Get available COM port on your PC

You are now following this Submission

This function output a cell array with string name of each COM port available on your PC.

Example:
COM_Port = getAvailableComPort();

Enjoy.

Cite As

Daniel Lavoie (2026). Get Available COM PORT (https://nl.mathworks.com/matlabcentral/fileexchange/9251-get-available-com-port), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired: CO2gui - lab control and automation

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0