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))
Easy way to find size of file is: enter these cammands
K=imfinfo('filename.formate'); size_of_file=K.FileSize
K=imfinfo('filename.formate');
size_of_file=K.FileSize
and get size of file.