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

6 次查看(过去 30 天)
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