I have 26 characters A to Z, I group 4 characters together and separate the following 4 characters by a space which is like this:
abcd efgh ijkl mnop qrst uvwx y
Another method is to use regexp
regexp
A='abcd efgh ijkl mnop qrst uvwx yz'; A_splited=regexp(A, '\S\S\S\S\s\S\S\S\S', 'match')
However, the last 'yz' will not appear in this case. So there will be a need to tweak using something like this.
A_splited{1,end+1}=A(end-rem(length(A),10)+1:end)