function xls_annotated_array_write(filename,A)
[M,N] = size(A);
raw = cell(M+1,N+1);
for ii = 1:M
   raw{ii+1,1} = ['Row ',num2str(ii),': '];
end
for jj = 1:N
   raw{1,jj+1} = ['Col ',num2str(jj)];
end
for ii = 1:M
   for jj = 1:N
      raw{ii+1,jj+1} = A(ii,jj);
   end
end
xlswrite(filename,raw)



