用MATLAB实现NAIVEBAYES和Logisticregression算法