diff --git a/getMat.m b/getMat.m
new file mode 100644
index 0000000000000000000000000000000000000000..d65849362a7bf2ecc434ed2b0d0cf29d0a2f1d10
--- /dev/null
+++ b/getMat.m
@@ -0,0 +1,7 @@
+function m = get_mat(folder,name,isWritable)
+%GET_MAT Summary of this function goes here
+%   Detailed explanation goes here
+
+namemat = fullfile(folder,[name,'.mat']);
+m = matfile(namemat,'Writable',isWritable);
+end
\ No newline at end of file