Is it possible in matlab to explicitly format the output numbers?

I don’t know of a way to specify a global format of the type you want. sprintf('%15.4f', x) or num2str(x, '%15.4f') do what you’re looking for, if you don’t mind calling them explicitly each time.

Leave a Comment