determing file size

12 Ansichten (letzte 30 Tage)
kash
kash am 2 Mär. 2012
Bearbeitet: Walter Roberson am 30 Jul. 2019
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

Akzeptierte Antwort

Jonathan Sullivan
Jonathan Sullivan am 2 Mär. 2012
im1_stats = dir(filename_image1);
im2_stats = dir(filename_image2);
ratio = im1_stats.bytes./im2_stats.bytes
  6 Kommentare
kash
kash am 2 Mär. 2012
Thanks Jonathan
Abdesselam Bassou
Abdesselam Bassou am 23 Nov. 2017
txk a lot

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Convert Image Type finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by