Matlab gcf function error linux R2014b ubuntu

조회 수: 1 (최근 30일)
Eren Soylu
Eren Soylu 2015년 2월 22일
편집: Ahmet Sezgin Duran 2017년 8월 3일
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

채택된 답변

Ahmet Sezgin Duran
Ahmet Sezgin Duran 2015년 3월 25일
편집: Ahmet Sezgin Duran 2017년 8월 3일
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
Bahri ABACI
Bahri ABACI 2015년 3월 27일
It worked thanks a lot
Yunus Demir
Yunus Demir 2017년 3월 19일
It worked for me too.. :) Thanks

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by