There is a way to get informations from regional settings?

In particular I would like to get the informations about the thousand and the decimal separator used in the regional settings.

I have to format amounts in strings and in the num2str function I can only set in a fixed way the “,” or the “.” symbol.

I have see that in the date2str I can use -1 as a parameter to indicate the regional setting corresponding parameter, but there isn’t the same feature useful to format amounts…

I find the solution.

This is an undocumented feature, because if you put -1 in the thousand and the decimal separator it works even in the num2str function…

Sometimes the old ‘try and see what happens’ method is the better method [;)].