2.1 Vectors

image.png

  1. a = [1:10]
  2. //show a = 1 2 3 4 5 6 7 8 9 10
  3. b = [1:2:10]
  4. //show b = 1 3 5 7 9
  5. x= [1,2,3]
  6. x = 1 2 3
  7. >>y=[4;5;6]
  8. y =
  9. 4
  10. 5
  11. 6
  12. >>z=[7,8,9]'
  13. z =
  14. 7
  15. 8
  16. 9
  17. >>a=[1:2:10]
  18. a =
  19. 1 3 5 7 9

2.2 Matrices矩阵

rank 级数
det 行列式:det(A) = |A|计算方法:Matrices det calculator 对角线法则
inv 求逆矩阵
eig 矩阵的特征值
diag 构造对角矩阵

inv(A)A = Ainv(A) = E