determing file size

14 次查看(过去 30 天)
kash
kash 2012-3-2
I have images in two folders,in e drive,one folder consists of normal images ,and other compressed images
image(foldername)consists of original images
image1(foldername)consists of compressed folder
i want to calculate the size of each folder and compression ratio,please help

采纳的回答

Jonathan Sullivan
im1_stats = dir(filename_image1);
im2_stats = dir(filename_image2);
ratio = im1_stats.bytes./im2_stats.bytes
  6 个评论
kash
kash 2012-3-2
Thanks Jonathan

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Import, Export, and Conversion 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by