实验:
给出实验数据
程序代码如下:
##############################################
#write by void, 2013.4.15,Beijing
##############################################
import matplotlib.pyplot as plt
import numpy as np
x =[13,15,16,21,22,23,25,29,30,31,36,40,42,55,60,62,64,70,72,100,130]
y =[11,10,11,12,12,13,13,12,14,16,17,13,14,22,14,21,21,24,17,23,34]
#错误检验
if len(x) != len(y):
print "ERROR"
exit
#构造矩阵
tmp = [1]*len(x)
x_m = np.matrix((x,tmp)).astype(np.int)
y_m = np.mat