摘要:
主要使用matplot.pyplot import matplot.pyplot as plt plt.figure(1) plt.subplot(211) plt.plot(x,y, 'rs') plt.xlabel('x') plt.ylabel('y') plt.axis( [-1,1, -1 阅读全文
摘要:
使用numpy时,跟matlab不同: 1、* dot() multiply() 对于array来说,* 和 dot()运算不同 *是每个元素对应相乘 dot()是矩阵乘法 对于matrix来说,* 和 multiply() 运算不同 * 是矩阵乘法 multiply() 是每个元素对应相乘 A B 阅读全文