In matlab, how is the Greek alphabet entered?

zhaozj2021-02-12  138

The TEX file format is allowed to display characters in the MATLAB graphics. Use / bf, / it, / rm to represent the black body, italic, and the physical character, and pay special attention to the use of large brackets {}. Example: Write a black body on the existing graph, there is a slope, and a whole sentence. 1. Draw X = 0: 0.01: 8; y = sin (x); plot (x, y) 2, write in the graphical frame to click the A (Insert Text) button, then you need to add a text. Enter the following characters. {/ Itlike} {/ itcurve.} Y = x ^ {abcd} y = x_ {abcd} / int_ {x_0} ^ {x_n} 3, directly Command window input T = ['y1 (/ alpha) = sin (/ alpha)', 'Y2 (/ THETA) = / int_0 ^ {2 / pi} sin (/ beta)'] gtext (t); then use mouse Select place to place the location. The results have the following preparations, and then give you a function to let everyone want to add Wings .Texlabel, Example: >> f = 'x ^ 2'f = x ^ 2 >> TEXLabel (F,' Literal ') ANS = {x} ^ {2} You can write {x} ^ {2} directly using the INSERT TEXT tool in the graphics window. That is, the expression of the target. More instances use the Help Texlabel section as follows: Examples: Texlabel ('sin (SiN (x ^ 2 y ^ 2)) / SQRT (x ^ 2 y ^ 2)') Returns {sin} ({SQRT} ({x} ^ {2} {y} ^ { 2}) / {SQRT} ({x} ^ {2} {y} ^ {2}) texlabel (['3 * (1-x) ^ 2 * exp (- (x ^ 2) - (Y 1) ^ 2) - 10 * (x / 5 - x ^ 3 - y ^ 5) * '...' exp (-x ^ 2-y ^ 2) - 1/3 * EXP (- (x 1) ^ 2 - y ^ 2) ']) Returns {3} ({1} - {x}) ^ {2} {exp} (({x} ^ {2}) - ({y} { 1}) ^ {2}) -...- {1} / {3} {EXP} (- ({x} {1}) ^ {2} - {y} ^ {2}) TEXLabel (' Lambda12 ^ (3/2) / pi - pi * delta ^ (2/3) ') Returns {/ LAMBDA_ {12}} ^ {{3} / {2}} / {/ pi} - {/ pi} { / delta} ^ {{2} / {3}} texlabel ('lambda12 ^ (3/2) / pi - pi * delta ^ (2/3)', 'Literal') Returns {Lambda12} ^ {{3} / {2}} / {pi} - {delta} ^ {{2} / {3}}

[Original] A TEX file format is allowed to display characters in the MATLAB graphics. Use / bf, / it, / rm to represent the black body, italic, and the physical character, and pay special attention to the use of large brackets {}. Example: Write a black body on the existing graph, there is a slope, and a whole sentence. 1. Draw X = 0: 0.01: 8; y = sin (x); plot (x, y) 2, write in the graphical frame to click the A (Insert Text) button, then you need to add a text. Enter the following characters. {/ Itlike} {/ itcurve.} Y = x ^ {abcd} y = x_ {abcd} / int_ {x_0} ^ {x_n} 3, directly Command window input T = ['y1 (/ alpha) = sin (/ alpha)', 'Y2 (/ THETA) = / int_0 ^ {2 / pi} sin (/ beta)'] gtext (t); then use mouse Select place to place the location. The result is as follows: related pictures of this topic are as follows:

转载请注明原文地址:https://www.9cbs.com/read-7195.html

New Post(0)