matlab matrix to csv grepper code example Example: matlab matrix to csv grepper m = [234 2;671 5;735 1;264 2;346 7] writematrix(m,'M.csv')