|MATLAB Function Reference|
Release hold on a serial port
||A serial port name, or a cell array of serial port names
||A serial port object, or an array of serial port objects.
releases the hold MATLAB has on all serial ports.
releases the hold MATLAB has on the serial port specified by
port can be a cell array of strings.
releases the hold MATLAB has on the serial port associated with the object specified by
obj can be an array of serial port objects.
An error is returned if a serial port object is connected to the port that is being freed. Use the
fclose function to disconnect the serial port object from the serial port.
freeserial is necessary only on Windows platforms. You should use
freeserial if you need to connect to the serial port from another application after a serial port object has been connected to that port, and you do not want to exit MATLAB.