Function Reference
— Built-in Function: pclose (fid)

Close a file identifier that was opened by popen. You may also use fclose for the same purpose.