MATLAB小技巧记录(特殊符号、图例位置...)
MATLAB小技巧
- MATLAB中的特殊符号
- Matlab设置图例的位置
MATLAB中的特殊符号
α \alpha
β \beta
γ \gamma
θ \theta
Θ \Theta
Г \Gamma
δ \delta
Δ \Delta
ξ \xi
Ξ \Xi
η \elta
ε \epsilong
ζ \zeta
μ \mu
υ \nu
τ \tau
λ \lamda
∧ \Lamda
π \pi
∏ \Pi
σ \sigma
∑ \Sigma
φ \phi
Φ \Phi
ψ \psi
Ψ \Psi
χ \chi
ω \ommiga
Ω \Ommiga
< \leq
> \geq
不等于 \neq
<< \ll
>> \gg
正负 \pm
左箭头 \leftarrow
右箭头 \rightarrow
上箭头 \uparrow
Matlab设置图例的位置
☆★坐标轴内部位置: (将图例放置在坐标轴区域内)☆★
- ‘north’:图例位于图上部中间
- ‘south’:图例位于图下部中间
- ‘east’:图例位于图右侧中间
- ‘west’:图例位于图左侧中间
- ‘northeast’:图例位于图右上角(默认常用)
- ‘northwest’:图例位于图左上角
- ‘southeast’:图例位于图右下角
- ‘southwest’:图例位于图左下角
☆★坐标轴外部位置: (将图例放置在坐标轴区域之外)☆★
- ‘northeastoutside’: 坐标轴区域右上角外部
- ‘northwestoutside’: 坐标轴区域左上角外部
- ‘southeastoutside’: 坐标轴区域右下角外部
- ‘southwestoutside’: 坐标轴区域左下角外部
- ‘northoutside’: 坐标轴区域上部外部居中
- ‘southoutside’: 坐标轴区域下部外部居中
- ‘eastoutside’: 坐标轴区域右侧外部居中
- ‘westoutside’: 坐标轴区域左侧外部居中
示例
plot(X, Y1, '-', X, Y2, '--', 'LineWidth', 1.5,'color','#F47F72'); title('Sample image'); legend('Train','Validation '); xlabel('x-axis'); ylabel('y-axis');
未完待续~
2025年4月22日