popen read and write script Publisher Review:
popen read and write popen read and write - MEX source to acccess popen r/w
popen read and write - MEX source to acccess popen r/w popen() -- for "pipe open" -- is a very useful system call provided in many flavors of Unix. It runs a command passed in as a string then returns a file handle so that the parent process can read or write to the process as if it was a file; data passed this way is connected to the standard input or the standard output of the child process.I created this because I wanted to process very long MP3 files in Matlab. Originally I wrote mp3read to allow me to decode just a small section of a long MP3 file without having to decode the whole thing, but every time I wanted to read another segment, I had to open the file again, then seek through to the point I wanted to read.Instead, by using popen to open an MP3 decoding process that writes to standard output, I can "pull" as many frames as I want from the file, then put the process to sleep while I deal with those frames, then, on my next read from popen, the process is reawoken and the next block of data can be accessed. But this could be used for any application where there are long data streams to read or write, and you want to handle them a bit at a time.Two functions are provided, popenr.c for reading from command pipes, and popenw.w for writing to command pipes. Reading and writing to the same command is not supported at present. Requirements: ยท MATLAB Release: R2006bpopen read and write script details and screenshot
RECOMMENDED TOOLS
Related tags:
Related downloads
LSM File Toolbox script
LSM File Toolbox LSM File Toolbox - Functions for reading info databases of Zeiss LSM conf
Price: Freeware$, Rating: 6, Downloads: 0
LSM File Toolbox LSM File Toolbox - Functions for reading info databases of Zeiss LSM conf
Price: Freeware$, Rating: 6, Downloads: 0
constraint script 0.2
constraint constraint provides a way to define constrained classes in order to ensure that
Price: GPL$, Rating: 6, Downloads: 0
constraint constraint provides a way to define constrained classes in order to ensure that
Price: GPL$, Rating: 6, Downloads: 0
Light Speed! script 1.2-5
Light Speed! Light Speed! is an OpenGL-based program which illustrates the effects of spec
Price: Other Free / Open So$, Rating: 6, Downloads: 0
Light Speed! Light Speed! is an OpenGL-based program which illustrates the effects of spec
Price: Other Free / Open So$, Rating: 6, Downloads: 0
My Clock script
My Clock My Clock - A example of program with MATLAB for Visualisation
Price: Freeware$, Rating: 9, Downloads: 0
My Clock My Clock - A example of program with MATLAB for Visualisation
Price: Freeware$, Rating: 9, Downloads: 0
mat7to6 script
mat7to6 mat7to6 makes MATLAB 7.x mat-files readable by MATLAB 6.x.
Price: Freeware$, Rating: 10, Downloads: 0
mat7to6 mat7to6 makes MATLAB 7.x mat-files readable by MATLAB 6.x.
Price: Freeware$, Rating: 10, Downloads: 0
mat2hdf script
mat2hdf mat2hdf - Convert MATLAB 6/7 MAT files to HDF 5.
Price: Freeware$, Rating: 10, Downloads: 0
mat2hdf mat2hdf - Convert MATLAB 6/7 MAT files to HDF 5.
Price: Freeware$, Rating: 10, Downloads: 0
generateXML script
generateXML generateXML - Output the input variable as an XML string suited for import in
Price: Freeware$, Rating: 7, Downloads: 0
generateXML generateXML - Output the input variable as an XML string suited for import in
Price: Freeware$, Rating: 7, Downloads: 0
Manhattan Virtual Classroom script 3.2
Manhattan Virtual Classroom Manhattan Virtual Classroom is a fast, stable and effective co
Price: GPL$, Rating: 10, Downloads: 0
Manhattan Virtual Classroom Manhattan Virtual Classroom is a fast, stable and effective co
Price: GPL$, Rating: 10, Downloads: 0
