If you want a specific format including spacing, then use a specific format string with fprintf to write the file. "Higher-level" routines offer some convenience but at a price of not providing precise control over all aspects of the formatting.
Define what you want for each numeric field and we can write a suitable format string (or you can, too, for that matter, simply read the doc for fprintf and see the examples)
ADDENDUM
To demonstrate the process in general...here's the desired output line format after pasting in a code editor and inserting for convenience column numbers...
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111111111111111111111
000000000111111111122222222223333333333444444444455555555566666666666777777777788888888889999999999000000000111111111122
123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
12345 13 201508211200 84.00 252.40 0 0 0.00000 0.00000 0.00000 0.00000 0
From this we can ascertain type and format for the various fields. First, the columns for which fields end are seen to be
5,17,31,39,48,54,56,72,86,100,114,118
and the format for each corresponding field type and precision (ignoring width is
%d,%d,%d,%.2f,%.2f,%d,%d,%.5f,%.5f,%.5f,%.5f,%d
Now looking at the width of each field, which is the diff() of the above column endings, we find
>> c=[0,5,17,31,39,48,54,58,72,86,100,114,118];
>> diff(c)
ans =
5 12 14 8 9 6 4 16 14 14 14 4
>>
Unfortunately, only the last few %f fields are consistent so we can't make much use of anything but the actual widths. So the format string can be written as
fmt=['%5d%12d%14d%8.2f%9.2f%6d%4d ' repmat('%14.5f',1,4) '%4d\n'];
The above will preserve precisely the width and precision of the sample text line. If it were me unless this is set by some other application, I'd clean up the above mismatches of approximately-equal widths so could simplify to fewer individual fields and make more use of the repmat construct, but that's just a nicety. You should get the idea from the example.