Matlab’s TeX support in figure windows is great for displaying information in a visually appealing way. However, many of the TeX elements just get in the way when displaying a label string in the command window and lead to lots of additional gibberish if you want to create a valid variable name from the TeX string using genvarname.
Given the TeX string as an input, return a string that contains only the plain text of what would be displayed in a figure window by title, xlabel, etc.
Retain special characters, e.g., ‘\beta’ becomes ‘beta’.
Cell array inputs should return multi-line strings.
Solution Stats
Solution Comments
Show commentsProblem Recent Solvers14
Suggested Problems
-
Sort a list of complex numbers based on far they are from the origin.
5810 Solvers
-
Maximum running product for a string of numbers
2257 Solvers
-
Create a function handle that reverses the input arguments of another function handle
158 Solvers
-
chance in percent for minimum K heads when a good coin is tossed N times?
55 Solvers
-
546 Solvers
More from this Author5
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!