What is the best way to figure out the size of a file using MATLAB? The first thought that comes to mind is size(fread(fid)).
size(fread(fid))
Use the fact that MatLab has access to Java Objects:
myFile = java.io.File('filename_here') flen = length(myFile)