How can i write infinite symble in matlab using keyboard shortcut

how can write the symble ∞ using keyboard shortcut

2 Comments

How to write infibate in matlab

See either of the answers already posted on this question.
If you want to assign the "value" infinity to a variable, use the inf function.
x = inf
x = Inf

Sign in to comment.

Answers (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.
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.

Categories

Find more on Functions in Help Center and File Exchange

Tags

Asked:

on 2 Apr 2022

Commented:

on 3 Feb 2025

Community Treasure Hunt

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

Start Hunting!