摘要: 1、cmd窗口输入-guide > 打开.fig文件 2、查看SPM源代码: 2、matlab中如何改x,y轴以及图例上字体大小 1) x,y轴 整个轴上面就一个设定字符 xlabel('\Delta [yesno^{-2}]','FontName','Times New Roman','FontS 阅读全文
posted @ 2018-09-06 00:04 何弈 阅读(572) 评论(0) 推荐(0) 编辑
摘要: ordered_data = np.load('ordered_data_just_TD_mae.npy')results = pd.Series(np.squeeze(np.load('results_just_TD_mae.npy')))sigma = pd.Series(np.squeeze( 阅读全文
posted @ 2018-09-05 20:53 何弈 阅读(414) 评论(0) 推荐(0) 编辑
摘要: merage# pandas提供了一个类似于关系数据库的连接(join)操作的方法<Strong>merage</Strong>,可以根据一个或多个键将不同DataFrame中的行连接起来,语法如下: 1 2 3 merge(left, right, how='inner', on=None, le 阅读全文
posted @ 2018-09-03 19:41 何弈 阅读(413) 评论(0) 推荐(0) 编辑
摘要: 一、Inf 和 NAN处理 lnf: 无穷大值,可以用islnf或者isfinite函数处理, 比如:X(find(isinf(X) == 1)) = 0; NAN:不是一个数字,可以用isnan函数来处理,比如:X(find(isnan(X) == 1)) = 0; 或者: 类似于这种处理 mn( 阅读全文
posted @ 2018-09-03 01:09 何弈 阅读(2219) 评论(0) 推荐(0) 编辑
摘要: from numpy import * a1 =[[1,2,3],[4,5,6]] #列表 print('a1 :',a1) #('a1 :', [[1, 2, 3], [4, 5, 6]]) a2 = array(a1) #列表 > 数组 print('a2 :',a2) #('a2 :', ar 阅读全文
posted @ 2018-08-30 15:46 何弈 阅读(690) 评论(0) 推荐(0) 编辑
摘要: 直接看例子: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 解析: loc 在index的标签上进行索引,范围包括start和en 阅读全文
posted @ 2018-08-30 01:28 何弈 阅读(709) 评论(0) 推荐(0) 编辑
摘要: [python] view plain copy <code class="language-python">import operator from functools import reduce a = [[1,2,3], [4,6], [7,8,9,8]] print(reduce(opera 阅读全文
posted @ 2018-08-30 00:48 何弈 阅读(8769) 评论(0) 推荐(0) 编辑
摘要: 使用python的人都知道range()函数很方便,今天再用到他的时候发现了很多以前看到过但是忘记的细节。这里记录一下range(),复习下list的slide,最后分析一个好玩儿的冒泡程序。 这里记录一下: >>> range(1,5) #代表从1到5(不包含5) [1, 2, 3, 4] >>> 阅读全文
posted @ 2018-08-29 16:54 何弈 阅读(485) 评论(0) 推荐(0) 编辑
摘要: 1、在matlab中 ,infro.mat中存有很多子矩阵(比如:mean_FA.mat, mean_e1.mat和 mean_e2.mat),调出某一个矩阵时,命令行为:load([path,'\',infro.mat],'mean_FA'); 2、load(path) 导出的形式是结构体;而im 阅读全文
posted @ 2018-08-29 00:06 何弈 阅读(2641) 评论(0) 推荐(0) 编辑
摘要: 1、An infant (from the Latin word infans, meaning "unable to speak" or "speechless") is the very young offspring of a human or other mammal. the term i 阅读全文
posted @ 2018-08-26 23:37 何弈 阅读(6284) 评论(0) 推荐(0) 编辑
你好