随笔分类 -  matlab

摘要:######################## 01:数据显示格式: 实数以小数点后14位显示: format long; 以最接近的有理数显示 format rational; 实数默认以小数点后4位 format; >> pi ans = 3.1416 >> format long >> pi 阅读全文
posted @ 2021-05-15 00:41 igoodful 阅读(116) 评论(12) 推荐(0)
摘要:########################### 一:直接输入:同行数据之间用空格或逗号分隔,不同行之间用分号或回车: % 逗号分隔同行元素:>> [1,2,3;4,5,6] ans = 1 2 3 4 5 6 % 空格分隔同行元素:>> [10 20 30;40 50 60] ans = 1 阅读全文
posted @ 2021-05-03 01:53 igoodful 阅读(210) 评论(0) 推荐(0)
摘要:################################ 案例一:自变量从1到length(y) >> x=linspace(0.1,6,50); >> stem(sin(x)) 案例二:指定自变量: >> x=linspace(0.1,6,100); >> stem(x,sin(x)) 案 阅读全文
posted @ 2021-05-01 01:38 igoodful 阅读(128) 评论(0) 推荐(0)
摘要:################################### 一:合并绘图: plot(X1,Y1,LineSpec1,...,Xn,Yn,LineSpecn) x = linspace(-2*pi,2*pi,200); y1 = sin(x); y2 = cos(x); plot(x,y 阅读全文
posted @ 2021-04-30 23:08 igoodful 阅读(1079) 评论(1) 推荐(0)
摘要:################################## 一:符号表达式expr对自变量x在a处的极限:limit(expr,x,a) 二:符号表达式expr对自变量x在a处的左极限:limit(expr,x,a,'left') 三:符号表达式expr对自变量x在a处的右极限:limit 阅读全文
posted @ 2021-04-29 21:13 igoodful 阅读(1249) 评论(0) 推荐(0)
摘要:################################# 表达式f对自变量从a到b求和:其中inf表示正无穷大 F = symsum(f,k,a,b) F = symsum(f,k) syms k x S1 = symsum(k^2, k, 0, 10) S2 = symsum(1/k^2 阅读全文
posted @ 2021-04-29 21:05 igoodful 阅读(2853) 评论(0) 推荐(0)
摘要:############################# sym/taylor taylor(f) is the fifth order Taylor polynomial approximation of f about the point x=0 (also known as fifth or 阅读全文
posted @ 2021-04-29 20:53 igoodful 阅读(2030) 评论(0) 推荐(0)
摘要:################################### 四舍五入: 取模: ################################## 阅读全文
posted @ 2021-04-27 19:52 igoodful 阅读(73) 评论(0) 推荐(0)
摘要:################################# ########################### 阅读全文
posted @ 2021-04-26 23:12 igoodful 阅读(97) 评论(0) 推荐(0)
摘要:####################### 表示: 一:行向量>> a=[1,2,3] a = 1 2 3 二:列向量>> b=[4;5;6] b = 4 5 6 三:矩阵 >> c=[1,2,3;4,5,6] c = 1 2 3 4 5 6 行向量的产生与转换: 一:冒号法>> a=2:10 阅读全文
posted @ 2021-04-26 22:44 igoodful 阅读(556) 评论(0) 推荐(0)
摘要:####################### >> realmax ans = 1.7977e+308 >> realmin ans = 2.2251e-308 >> pi ans = 3.1416 >> eps ans = 2.2204e-16 >> ans ans = 2.2204e-16 > 阅读全文
posted @ 2021-04-26 22:30 igoodful 阅读(158) 评论(0) 推荐(0)