1. We first need to know that syms is a function that defines symbolic variables. You can enter "helpsyms" to see how to use syms, as shown in the following figure:
2. We enter "symsm" in the command line window to define the symbolic variable m, as shown in the following figure:
3. Enter "n = m 2+3 * m-2" to operate the symbolic variable m, as shown in the following figure:
4. Enter diff(n, m) for derivation, as shown in the following figure:
5. Press Enter to view the derivative result, as shown in the figure below:
Second, xlabe usage:
1, xlabel ('time') At this time, the x-axis represents time. Please note that you should enter two single quotes in English.
2.XLabel ({'time',' (observation time)'}) If one line can't be written or more lines are needed.
3. If you need latex to input some Greek characters or mathematical characters, don't forget to add a slash in front of it, xlabel('-2\pi\leqx\leq2\pi').
4. If you need to input superscript or subscript, you can input it through ""and "_".
Example: xlabel ('p _ 0') xlabel ('p 0')
5. If you need to set a specific coordinate axis color, the specific command is as follows: xlabel ('time',' fontsize', 12,' fontweight',' bold',' color',' r').