摘要: 主要使用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 阅读全文
posted @ 2016-11-03 17:31 liuhuiwisdom 阅读(174) 评论(0) 推荐(0) 编辑
摘要: 使用numpy时,跟matlab不同: 1、* dot() multiply() 对于array来说,* 和 dot()运算不同 *是每个元素对应相乘 dot()是矩阵乘法 对于matrix来说,* 和 multiply() 运算不同 * 是矩阵乘法 multiply() 是每个元素对应相乘 A B 阅读全文
posted @ 2016-11-03 14:09 liuhuiwisdom 阅读(1487) 评论(0) 推荐(1) 编辑