tags: Matlab
When drawing in Matlab, I found that if the string in the title function contains an underscore, the underscore will be displayed as a subscript. For example, title (‘example_1’) will appear as follows:

This is because in Matlab, the title function will interpret the input string in the format of ‘tex’ by default, the underscore will become a subscript, and the "^" symbol will become a superscript. In addition, you can also use the escape symbol "\" to represent some special symbols, such as "\ alpha" can represent the Greek letter
。
For example, enter title (’\ alpha ^ 2 + \ beta_1’), and the following display will appear:

The attribute that affects the effect of the output string is 'Interpreter'. This attribute has three values that can be set, namely 'tex', 'latex' and 'none', the default is 'tex', Will interpret the string in tex format and then output the text. If we need to input text output according to the string, set the attribute to ‘none’, for example, title (’\ alpha ^ 2 + \ beta_1’, ‘Interpreter’, ‘none’) will be displayed as follows:

More detailed information can be found on the MathWorks official website.
Substring (int); / / // intercepted from the subscript number Substring (int, int); // begins with the number of subscripts, intercepting the last few bits. Str.Indexof (",") // Which of the...
Problem: When setting the underline, as the text increases, the underline extends and there is a misalignment, as shown below Solution: Make the table and delete the unnecessary borders. The effect I ...
Process the iris.txt data set in spark, some of the processed data are as follows: But there is an error when using sparksql to find the data. The cause of the error should be the matched character &q...
How to deal with the newline character #"↵" in html Demand background Request back the field value via ajax, the character is of type String and contains a newline character↵ , T...
NaN (Not a Number) Nan (not a number) When you handle different, multiple diverse data, often touch NAN, NAN is 0/0 or an imported a string as a value. It may also be endless or when you insert a numb...
cin.get (ch) function reads any character (including the null character, line breaks, tabs, etc.) inside from the input stream, which is equivalent to the following operation. cout.put (ch) and cin.ge...
How to deal with the babel configuration not being displayed in react In order to import only the required components, instead of manually importing the styles, the styles are automatically imported o...
It is necessary to distinguish between double quotes and single quotes in MATLAB, which confuses me “ ”Representative string ‘ ’Representative character example...