On linux, FreeMat uses different decimal separator just for representation, according to the values of local machine locales.
In a console:
$ locale
...
LC_NUMERIC="ca_ES.UTF-8"
...
that is the setting for catalan. Back on FreeMat
--> randn
ans =
-0,0362
In Spain it's a convention to use a coma instead of a period. I think is better in this case NOT to follow locale settings and offer the user the same visualization.
A possible work-arround is to modify LC_NUMERIC before call freemat:
$ export LC_NUMERIC="C"; FreeMat;
And my solution is to add the following line along the begin of the program:
setlocale(LC_NUMERIC, "C");
I tested this in the file Freemat/src/MainApp.cpp:98 and worked for me.
Possibly, in a future this could be part of a settings dialog.
Thanks!
Ximo