• / 12
• 下载费用：10 金币

# matlab讲义4.ppt

matlab讲义4.ppt

Week 4,DeterminantInner Products,Given A = [aij],Where Mij is the submatrix obtained by deleting row i and column j.,Why compute det(A)?,det(A) = 0  A is singular,Determinant,det(A) = ad - bc,For 3-by-3 matrix,det(A) = aei + dhc + gbf – ceg – fha – ibd,Not true for general n-by-n matrix.,,For 2-by-2 matrix,If n = 20, n! = 2  1018 operations. Assuming 109 operations/sec.  2  109 sec. = 100yr. So how det(A) is computed? Find it by Matlab!,Wn ≑ n Wn-1≑ n • (n-1) • Wn-2≑ n! W1 = n! 1 = n!,If work of computing det(An) = Wn, then,n=500; A=rand(n); % generate a n-by-n matrix tic; % set the clock to zero v=det(A); % compute the determinant toc % show the elapsed time,To determine the timing,n time ratio0.1090 ---0.7350 6.74 2000 5.8440 7.95 4000 43.5000 7.44,Conclusion: det(An) = O(n3),Let V be a vector space. A function F: V VC is an inner product if,Inner Products,F(u, v) = ut • v,In Matlab: ut • v = u’ * v or dot (u, v),Example 2 : V = M2x3(R) = set of all 2-by-3 real matrices.,Is it an inner product?,Example 1 : V = Rn .,2.,1.,3.,4.,5.,But,Thus F(A, B) may not be an inner product. To show that it is not an inner product, we need to find A, B, C,  M23 (R) , such that F(A + B, C) F(A, C) + F(B, C).,Can you find them by Matlab ?,In Matlab:,F(A, B) = max max (abs (A’* B)),,Can you think of another inner product for M2×3 (R) ?, 微传网所有资源均是用户自行上传分享，仅供网友学习交流，未经上传用户书面授权，请勿作他用。
0条评论

## 当前资源信息 hskm5268 ## 相关资源

• ## 物资采购 投标文件.doc

• ## 物理阶段性考试.doc

• ## 细胞生物学笔记-信号转导.doc

• ## 细胞工程考试复习题.doc

• ## arrive in,arrive at,reach和get to的用法和区别.doc

• ## A3中建五局公司 总承包实施计划.doc

• ## 物理科学中的数学 戴森 F。J。Dys.doc

• ## 供配电系统培训讲义(工程监理用).doc

• ## 8、渗漏维修施工参考资料.doc

• 微传网博客

网站客服QQ:80879498  会员QQ群：727456886

copyright@ 2018-2028 微传网络工作室版权所有

经营许可证编号：冀ICP备18006529号-1 ， 公安局备案号：13028102000124

收起
展开