Latex
点乘$\cdot$ \cdot
矩阵$\begin{bmatrix} 5 & 0 & 0 \\ 0 & 5 & 0 \\ 0 & 0 & 5 \end{bmatrix}$ \begin{bmatrix} 5 & 0 & 0 \\ 0 & 5 & 0 \\ 0 & 0 & 5 \end{bmatrix} (&空格,\\换行)
阿尔法$\alpha$ \alpha
贝塔$\beta$ \beta
分号$\frac{a}{b}$ \frac{a}{b}
$\triangleq$ \triangleq
$\wedge$ \wedge
$\vee$ \vee
$\lambda$ \lambda
$\in$ \in
$\sigma$ \sigma
$\Sigma$ \Sigma
$\zeta$ \zeta
$\thickapprox$ \thickapprox
$\mathop{min}\limits_{\Delta{x}}$ \mathop{min}\limits_{\Delta{x}} (若是普通符号,那么要用\mathop先转成数学符号再用\limits)
参考:http://www.mohu.org/info/symbols/symbols.htm
$\renewcommand{\thealgorithm}{1} %定义算法的编号$
$\begin{algorithm}[H] $
$\caption{Doppler Profile Extraction}$
$\begin{algorithmic}[1]$
$\REQUIRE{Spectrogram matrix $P$, centre frequency bin $cf$}$
$ \ENSURE{Doppler shift profile $DopShift$}\\$
$\STATE{colNum=getColumNum($P$);} \\$
$\STATE{$DopShift$(1:colNum)=$cf$;} //initialization \\$
$\FOR{i=1:colNum}$
\STATE row=getNonNullRows(col(i)); // get non-null rows of the $i$th col\\
\IF{isNotEmpty(row)}
\STATE{meanValue=mean(row);}\\
\ElSE
\STATE{meanValue\textgreater cf}\\
\STATE{$DopShift$(i)=max(row);}\\
\STATE{$DopShift$(i)=min(row);}\\
\ENDIF
\ENDFOR
\STATE{$DopShift$ = SMA($DopShift$);} // SMA represents smoothed moving average filter\\
\STATE{Return $DopShift$;}
\end{algorithmic}
\end{algorithm}
$