点乘$cdot$ cdot
矩阵$egin{bmatrix} 5 & 0 & 0 \ 0 & 5 & 0 \ 0 & 0 & 5 end{bmatrix}$ egin{bmatrix} 5 & 0 & 0 \ 0 & 5 & 0 \ 0 & 0 & 5 end{bmatrix} (&空格,\换行)
阿尔法$alpha$ alpha
贝塔$eta$ eta
分号$frac{a}{b}$ frac{a}{b}
$ riangleq$ riangleq
$wedge$ wedge
$vee$ vee
$lambda$ lambda
$in$ in
$sigma$ sigma
$Sigma$ Sigma
$zeta$ zeta
$ hickapprox$ hickapprox
$mathop{min}limits_{Delta{x}}$ mathop{min}limits_{Delta{x}} (若是普通符号,那么要用mathop先转成数学符号再用limits)
参考:http://www.mohu.org/info/symbols/symbols.htm
$ enewcommand{ healgorithm}{1} %定义算法的编号$
$egin{algorithm}[H] $
$caption{Doppler Profile Extraction}$
$egin{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 extgreater 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}
$