Why does using a comma as my decimal separator cause MATLAB to crash and affect my graphics?
Show older comments
If I use a semicolon as my decimal separator it causes MATLAB to crash and affect my graphics. Using the DEMO command can also cause a segmentation violation in this case.
In a crashing MATLAB, typing:
a = 1.2
gives
a = 1
Typing:
a = 12/10
gives
a = 1,2
Note that MATLAB in the second case answered with a comma (,) instead of a period (.).
When I run DEMO after installing on a UNIX platform, I may also receive the following error message:
-----------------------------------------------------------------------
Segmentation violation detected at Wed May 19 15:15:34 1999
------------------------------------------------------------------------
Configuration:
MATLAB Version: 5.3.0.10183 (R11)
Operating System: SunOS 5.5.1 Generic sun4m
Window System: Sun Microsystems, Inc. (3510), display :0.0
Current Visual: 0x22 (class 3, depth 8)
In Sweden and other countries, we use commas (,) instead of periods (.) in numbers.
On all computers, on which I have the new printer drivers on the default printer, if I have a comma (,) as the decimal symbol, MATLAB will crash. If I have a period (.) as the decimal symbol, MATLAB will work.
Accepted Answer
More Answers (0)
Categories
Find more on Debugging and Improving Code in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!