Sql Server Format Command Matlab For Loop