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.
Amazing you are very smart, thanks for share
@joycelyn wong, that's a great idea and I have done the same thing myself! Just take the guts of the scanports function here and put it in the callback function for the GUI button. The GUIDE tool really helps with this, and is pretty well documented.
hi, i would like to use for example a [scan] button in MATLAB GUI to scan all the available ports and display it in a text box on GUI. But i couldnt manage to do it. Any ideas please? Thanks
Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.