"Alex " <firstname.lastname@example.org> wrote in message news:email@example.com... > I have been looking around the newsreader as well as other search engines > for an answer to a problem I'm having, but haven't had any luck. > I have a camera that records data as a .sif file, and exports it as a .dat > file. The video has a resolution of 512x512, is 600 frames in length, and > the file size is 300MB. It may be exporting the video as a 307200x514 > array (it adds a column of padding to both sides of the array, and stacks > the frames together as rows ), but I'm not sure as I cant get the file > open. It should be a space delimited file containing only numbers > representing intensities on the camera, no text. My question is how to > read the .dat file into matlab as an array. I have tried: > > A = fread('new02z.dat')
FREAD is documented to accept a file identifier (as returned by FOPEN) not a file _name_.