Transpose ‘A’ and it should work:
fprintf(fileID,'%6.5f %6.5f %6.5f %6.5f %6.5f\r\n',A.');
or if ‘A’ will always be real:
fprintf(fileID,'%6.5f %6.5f %6.5f %6.5f %6.5f\r\n',A');
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!