function [] = mat_to_txt( in_path, out_path )
%   Function for converting .mat file to .txt
%   Parameters
%   in_path : path of the .mat file (e.g. ~/Documents/my_mat_files/filename.mat)
%   out_path: path of the generated .txt file (e.g. ~/Documents/my_txt_files/filename.txt) 
Data = load(in_path);
DataField = fieldnames(Data);
dlmwrite(out_path, Data.(DataField{1}));
end

