One of the most important abilities of MATLAB is reading and writing on serial post of PC. Usually, MATLAB programmer has problem in this subject.
We have prepared a MATLAB function for you, that scan all available serial port and returns a cell array that identifies available ports.
One of application of this function is in Arduino project, because the link between Arduino and MATLAB is serial port.
This code has a document which describe the algorithm in detail.