You could use this customized matrix type that uses zero-based indexing
http://www.mathworks.com/matlabcentral/fileexchange/33301-zero-based-indexable-arrays--oop-exercise-
but I don't really recommend it. Why not just do
a4(ss+1,jj+1)=A2(3,M);
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!