Matlab gcf function error linux R2014b ubuntu

2 Ansichten (letzte 30 Tage)
Eren Soylu
Eren Soylu am 22 Feb. 2015
I've tried simple plot function on my computer.
x=(-pi):pi/40:pi;
y=x.*sin(3*x.^2).*exp(-x.^2/4);
plot(x,y)
but matlab returns this answer to me
Error using gcf
uIcontrolfontunits is an invalid class name
Error in newplot (line 60)
fig = gcf;
Error in deneme (line 3)
plot(x,y)
I could not find an answer for this problem.
I'm using ubuntu 14.04.4 with Matlab R2014b Intel i5 & GTX540m Sony Vaio

Akzeptierte Antwort

Ahmet Sezgin Duran
Ahmet Sezgin Duran am 25 Mär. 2015
Bearbeitet: Ahmet Sezgin Duran am 3 Aug. 2017
I had that problem too. It happens due to Turkish locale settings in GNU/Linux systems. To fix it, you should start Matlab with English locale environment variables, like this:
LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 ./matlab
That fixed the problem for me. (Using R2014b on Ubuntu 14.04 AMD64.)
  2 Kommentare
Bahri ABACI
Bahri ABACI am 27 Mär. 2015
It worked thanks a lot
Yunus Demir
Yunus Demir am 19 Mär. 2017
It worked for me too.. :) Thanks

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Startup and Shutdown finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by