With help of MATLAB external programming interface,by analyzing the datas of KLINE Data for the stock market software,a K-line data for MATLAB to obtain the external stock market sofware is realized.The stock datas is analysed with the powerful analytical capabilities of MATLAB.