You can use the text batch callout. As shown above, the procedure is as follows.
Draw_x=rand ([4,1]);
Draw_y=rand ([4,1]);
max_text={' 1 ', ' 2 ', ' 3 ', ' 4 '};
Line (draw_x,draw_y);
Plot (draw_x,draw_y, ' r. ', ' markersize ', 20)
Text (Draw_x+0.02,draw_y+0.02,max_text)
========================================================
matlab How to mark the coordinate point is a little more obvious.
You can use the text command, for example:% by Lyqmath
CLC;
t = linspace (0, 2*PI);
Plot (t, sin (t));
Text (PI/2, sin (pi/2), ' Max ', ' fontweight ', ' Bold ', ' fontsize ',);
Title (' by Lyqmath ', ' fontweight ', ' Bold ', ' Color ', ' R ')
======================================================================
Greek alphabet on axis
Xlabel (' \gamma ')
ylabel (' \gamma ') subscript with
_ (underline) superscript with
^ (jian)
Greek letters and other special characters with pinyin such as
Α\alpha
Β\beta
γ\gamma
θ\theta
θ\theta
г\gamma
δ\delta
δ\delta ξ\xi ξ\xi Η\elta
ε\epsilong
ζ\zeta
μ\miu
υ\nu
τ\tau
λ\lamda ∧\lamda π\pi ∏\pi
σ\sigma
∑\sigma
φ\phi
φ\phi
ψ\psi
ψ\psi Χ\chi Ω\ommiga Ω\ommiga
Ρ\rho (This is the most fucked up, all kinds of online do not)
=================================================================
Various Color property option
options meaning option meaning
' r ' Red ' m ' Pink '
g ' green ' C ' cyan
'
B ' Blue ' W ' white
' y ' yellow ' k ' black
various line-style attribute options
option meaning option meaning
'-' solid line '-' dotted '
: ' Dot-line '-. ' dot dash
various mark point attribute option
options meaning
'. ' Draw each data point with dot ' ^ ' with upper triangle drawing Each data point '
+ ' uses ' + ' to draw each data point ' V ' with the lower triangle to draw each data point '
* ' with ' * ' to draw each data point ' > ' Use the right triangle to draw each data point '
. ' Use '. ' Draw each data point ' < ' use the left triangle to draw each data point
' s ' or squar with the square to draw each data point ' P ' uses the pentagram to draw each data point '
d ' or diamond uses the diamond to draw each data point ' h ' to draw each data point
with the hexagonal star These options can be connected together, such as: '-.G ' to draw a green dotted line, ' g+ ' means to
draw the curve with the green ' + ' number.