How to write infibate in matlab
How can i write infinite symble in matlab using keyboard shortcut
42 views (last 30 days)
Show older comments
how can write the symble ∞ using keyboard shortcut
2 Comments
Steven Lord
on 3 Feb 2025
See either of the answers already posted on this question.
x = inf
Answers (2)
DGM
on 2 Apr 2022
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.
0 Comments
Steven Lord
on 2 Apr 2022
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.
0 Comments
See Also
Categories
Find more on Desktop in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!