From bug-octave-request at bevo dot che dot wisc dot edu Thu Nov 12 16:49:24 1998 Subject: Octave v2.1.10 fread bug From: William D Kirby To: "Report, Bug" Date: Thu, 12 Nov 1998 17:47:03 -0500 I had an m file that ran fine with version 2.0.13 that read a binary data file with 80,000 16 bit ints with the following script num = fopen("test.pcm","rb"); [x, c] = fread(num, inf, "short"); Version 2.1.10 reads in x with a size of 131072x1. The first 80,000 values are correct, but the additional data are zero. The following is required to get the exact 80,000 data samples needed. num = fopen("test.pcm","rb"); [x, c] = fread(num, 80000, "short"); Shouldn't the "inf" notation read only to an end of file? Bill -- William D. Kirby Voice: (703) 273-0005 Consultant Email: wdkirby at ix dot netcom dot com 3527 Cornell Road Fairfax, VA 22030-1813