How can i write infinite symble in matlab using keyboard shortcut

42 次查看(过去 30 天)
how can write the symble ∞ using keyboard shortcut

回答(2 个)

DGM
DGM 2022-4-2
From this link:
  • Windows: Hold Alt, then type 2 2 1 E. Release Alt.
  • Mac: Hold Alt ⌥, then type 2 2 1 E. Release Alt.
I never found that to be very convenient at all. In Linux, you could use xdotool to create a short script that will issue any key sequence. You could then bind that to a convenient keyboard shortcut. I imagine similar can be done in other environments.
If you want to insert symbols into things like figure titles or legends, you can use LaTeX \infty, depending on the context.

Steven Lord
Steven Lord 2022-4-2
It depends. What's the context in which you want to use this symbol?
If you want to use it as the name of a variable in your code, you cannot. It is not a letter for purposes of what is and is not a valid MATLAB identifier; see the rules in the documentation for the isvarname function.
If you want to use this character in an axes, either as part of a label/title or just as the character, see this documentation page.
If you want to use it in formatted text in the Live Editor, to include an equation describing some aspect of the problem the code is designed to solve, insert an Equation or use the LaTeX shortcut as shown in the tables on this documentation page.
If none of these describe the context in which you want to use this character, please describe your intended use in more detail.

类别

Help CenterFile Exchange 中查找有关 Desktop 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by