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

3 ビュー (過去 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 件のコメント
Stephen23
Stephen23 2024 年 10 月 10 日
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 Center および File ExchangeStartup and Shutdown についてさらに検索

タグ

製品


リリース

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by