you should be able to build something like that, using the following commands.
1. reading your data
2. split your array
len = ceil(numel(your_data)/num_files);
tmp = your_data([1:len]+len*k);
alternatively use reshape in this step
3. saving the excel (preferably in the loop)
maybe you want wo use csvread/csvwrite instead
this should get started!