Keyboard characters become "messed up"

Hi,
My MATLAB works perfectly fine, but after some time some keyboard characters become "messed up". For example:
/ results in é,
" results in `,
< results in ',
? results in É
The only way to fix it seems to be to restart MATLAB.
Did anyone else encounter this problem? I'm running MATLAB R2011a on Windows 7.
I would greatly appreciate any advice.
Thank you, K

댓글 수: 2

Ramon Casero
Ramon Casero 2016년 9월 24일
편집: Ramon Casero 2016년 9월 24일
I'm running Matlab 2014a on Ubuntu linux trusty over a NoMachine NX remote session, and after some time, typing behaves erratically. For example, typing "asd" will produce "as", and then the cursor will select a few characters in the editor, instead of producing a "d". Typing another character will replace the spuriously selected ones.
Matlab needs to be restarted to correct the problem. Searching around, somebody suggested creating a java.opts file with the line
-Dsun.java2d.pmoffscreen=false
but this doesn't fix anything in this particular case.
Ana Fernández
Ana Fernández 2021년 3월 15일
Similar problem here, but for me it only happens in the Editor (everything works fine in the Command window) and with the character ~

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

답변 (5개)

Kwaku Benjamin
Kwaku Benjamin 2011년 8월 31일

1 개 추천

Hey K,
I had the same problem, whenever i started my Matlab and entered keyboard characters, i had completely different stuff in the command window. Here is how it worked and boy is took me 6months to figure out(hahaha, how dumb i am).
I bought my laptop in China, so the regional settings where set to China. So 1. go to control panel 2. regional settings(US) 3. change the region and also the language setting(US English). 4. Save the changes.
Remember, even though I could write and type in English before i changed the settings, AFTER changing it it still worked and WORKED IN MATLAB. Good luck
Alessandro Mogavero
Alessandro Mogavero 2019년 1월 10일

1 개 추천

I had the same problem. Though other software worked fine, so it was not an issue with system settings. I solved pressing several times (not sure how many). Shift + Alt + AltGr

댓글 수: 1

Thanks, I had this problem, and your comment helped me to solve it!!

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

Walter Roberson
Walter Roberson 2011년 8월 22일

0 개 추천

Do you happen to be using Simulink? I'm wondering if you are encountering an slcharacterencoding(), possibly in some model you are running?

댓글 수: 1

K
K 2011년 8월 22일
Hi Walter,
Thanks for your answer. No, I'm not using Simulink... Just fairly straightforward data analysis (file I/O, plotting, fft, etc).
K

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

Fangjun Jiang
Fangjun Jiang 2011년 8월 23일

0 개 추천

Did it happen in MATLAB Command Window or Editor? Before and after the problem happen, could you check menu File->Preferences->Keyboard, Fonts to see if there is any obvious change?
Probably it's better to call TMW tech support up and run a WebEx session to show them.

댓글 수: 7

Ksenia
Ksenia 2011년 8월 23일
Thank you for the suggestions. This happens both in the Command Window and the Editor. I will check the Fonts menu for any obvious changes the next time this happens (it's pretty unpredictable).
Jan
Jan 2011년 8월 23일
Does the problem appear in other applications also, e.g. external editors? Then you could have typed the shortcut for changing the keyboard layout. (wild mass guessing...)
K
K 2011년 8월 23일
No, this only happens in Matlab! And gets back to normal after restarting Matlab.
Jan
Jan 2011년 8월 23일
@K: I had problems after installing a new JRE in Matlab 6.5: Everything worked fine except for the curly braces in the command window. Are you experimenting with Java?
K
K 2011년 8월 23일
No, I haven't made any changes in Java recently.
Fangjun Jiang
Fangjun Jiang 2011년 8월 23일
@Jan, your keyboard latency problem is coming back!:)
I had the same problem since last night. It seems to be the problem of the Answers website.
Jan
Jan 2011년 8월 23일
@Fangjun: I've tried to create a thread with the subject "Broken web interface of Answers" etc, but without success. I got just the error message... It would be helpful, if this problem is announced anywhere.

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

Catherine
Catherine 2016년 11월 11일

0 개 추천

Similar problem here, running MATLAB 2016a on a Windows7 machine. Characters don't print properly in Command Window and Editor. Can't seem to type any brackets ('[]') which is very unsettling when using MATLAB!
Problem started yesterday. I checked regional settings and everything seems fine. Same with MATLAB preferences...
Anyone found a way out of this?

카테고리

도움말 센터File Exchange에서 Entering Commands에 대해 자세히 알아보기

질문:

K
K
2011년 8월 22일

댓글:

2021년 3월 15일

Community Treasure Hunt

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

Start Hunting!

Translated by