摘要: MATLAB中的取整函数 floor向下取整 ceil向上取整 round取最接近的整数 fix向0取整,即中心 阅读全文
posted @ 2018-01-21 21:43 壬人任仁 阅读(461) 评论(0) 推荐(0) 编辑
摘要: 学习条件、循环和其他语句之前,学些基本的操作。 1.print输出逗号 >>> #print 与 import的更多信息>>> #使用逗号输出>>> print 'age',42age 42>>> 1,2,3(1, 2, 3)>>> print(1,2,3)(1, 2, 3)>>> print 1, 阅读全文
posted @ 2018-01-21 20:54 壬人任仁 阅读(122) 评论(0) 推荐(0) 编辑
摘要: 字典的使用 >>> #字典>>> names=['alice','beth','cecil','dee-dee','earl']>>> numbers=['2341','885','529','458','123']>>> numbers[names.index('cecil')]'529' 创建字 阅读全文
posted @ 2018-01-21 20:13 壬人任仁 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 一、建立矩阵并查看 >> x=[1 3 0 -1 5]x = 1 3 0 -1 5>> disp(x) 1 3 0 -1 5 >> whos Name Size Bytes Class Attributes x 1x5 40 double 按量递增 >> x=1:0.5:10x = Columns 阅读全文
posted @ 2018-01-21 15:28 壬人任仁 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 今天学习python第三课,使用字符串。(所有标准的序列操作【索引、分片、乘法、判断成员资格、求长度、取最小与最大值】对字符串同样适用) 1.%(转换说明符)的用法,%标记了需要插入转换值的位置。 >>> formkk="hello ,%s. %s enough for you?" //注释:使用% 阅读全文
posted @ 2018-01-21 14:16 壬人任仁 阅读(241) 评论(0) 推荐(0) 编辑