To find the size of a file in bytes :
info = dir('video1.avi');
filesize = info.bytes;
Then to convert bytes to GB it can be done mathematically :
gb_size = filesize / (1024^3)
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!