I can't write ^ or ~ in the command window. Is there a remedy for this?

조회 수: 7 (최근 30일)
Gustav
Gustav 2024년 10월 10일
답변: TED MOSBY 2024년 10월 14일
I have no conflicting keyboard shortcuts. I have been able to input these characters in previous releases.
  댓글 수: 13
Sam Chak
Sam Chak 2024년 10월 10일
Try remapping certain keys in your swedish keyboard.
  • Microsoft Keyboard Layout Creator (MSKLC) Version 1.4
  • Colemak layout

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

채택된 답변

Gustav
Gustav 2024년 10월 10일
Thanks for the support! The solution I found was the following (working on Ubuntu 22.04.4 LTS).
1. In terminal: xmodmap -pke > ~/.Xmodmap
2. In .Xmodmap, change
keycode 35 = dead_diaeresis dead_circumflex dead_diaeresis dead_circumflex dead_tilde dead_caron dead_tilde
to
keycode 35 = diaeresis asciicircum diaeresis asciicircum asciitilde caron asciitilde
3. In terminal: xmodmap ~/.Xmodmap

추가 답변 (1개)

TED MOSBY
TED MOSBY 2024년 10월 14일
Hi Gustav,
In addition to your solution, here are some general steps that others experiencing the same problem can try:
Use ASCII Codes:
  • As a workaround, you can use ASCII codes to insert these characters. For example, in MATLAB, you can use:
char(94) % For '^'
char(126) % For '~'
Copy and Paste:
  • Copy the ^ and ~ characters from another source (like a text editor) and paste them into the MATLAB command window.
Check MATLAB Preferences:
  • Go to Preferences in MATLAB and check if there are any settings in the keyboard section that might be interfering with your keyboard input.
Check for Software Conflicts:
  • Some third-party software or utilities (such as keyboard managers or custom drivers) might interfere with keyboard input. Try disabling them temporarily to see if it resolves the issue.
Reboot the System:
  • Sometimes a simple reboot can resolve temporary glitches with keyboard inputs.
Hope this helps!

카테고리

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

태그

제품


릴리스

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by