1: function closeport(port) 2: % 3: % closeport(port) 4: % Closes a PETSc port opened with openport() 5: %see openport, receive 6: disp('You must build the closeport mex file by doing: cd ${PETSC_DIR}/src/sys/src/viewer/impls/socket/matlab; make BOPT=g matlabcodes')