Scanports function scans for available serial ports
Version 1.0.0.0 (1.39 KB) by
Rob Slazas
portlist = scanports(portlimit);
Returns cell array of available serial port identifiers.
portlist = scanports(portlimit);
Returns a cell array of available serial port identifiers, such as 'COM1'. By default will scan serial ports from COM1 to COM15. If the (optional) portlimit argument is passed to scanports, then it will scan from COM1 to COM[portlimit]. Displays a progress bar while scanning.
Cite As
Rob Slazas (2025). Scanports function scans for available serial ports (https://www.mathworks.com/matlabcentral/fileexchange/33273-scanports-function-scans-for-available-serial-ports), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2011a
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Use COM Objects in MATLAB in Help Center and MATLAB Answers
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |