Writedlm gives wrong output

Please make an MWE, and include versioninfo().