diff --git a/nbBits.m b/nbBits.m
new file mode 100644
index 0000000000000000000000000000000000000000..38dbea96cd178320ccf28f82a5956856b83b6d2a
--- /dev/null
+++ b/nbBits.m
@@ -0,0 +1,7 @@
+function [nbBits,info_] = nbBits(filename)
+%NBBITS Summary of this function goes here
+%   Detailed explanation goes here
+
+info_ = dir(filename);
+nbBits = info_.bytes*8;
+end
\ No newline at end of file