MATLAB: Function serialportlist is not working

MATLABserialserialportserialportlistusb port

When I use the function 'serialportlist' to identify the serial ports on my laptop i get a 1×0 empty string array.
ports=serialportlist
ports =
1×0 empty string array
I think, I should get at least 2 ports, because I have 2 USB ports on my laptop.
Im using matlab 2019b.
Do i need to instal some packages for using serialportlist?

Best Answer

I do not know if i have such a device. I want to play audio files via different USB speakers, do you have any tips how to do this?
Related Question