1: function port = openport(number) 2: % 3: % port = openport(number) 4: % Opens a port to receive matrices from Petsc. 5: % see closeport and receive 6: disp('You must build the openport mex file by doing: cd ${PETSC_DIR}/src/sys/src/viewer/impls/socket/matlab; make BOPT=g matlabcodes')