External Interfaces/API |
Disconnecting and Cleaning Up
When you no longer need your serial port object, you should disconnect it from the device, and clean up your MATLAB environment by removing the object from memory and from the workspace. These are the steps you take to end a serial port session.
Using Serial Port Objects on Different Platforms | Disconnecting a Serial Port Object |