Mathematica入门习题[3]–提取元素(切片)

  • A+

 

第三题

 

 

a = {{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}};
b = {{3, 0, 16}, {17, -6, 9}, {0, 23, -4}, {9, 7, 0}, {4, 13, 11}};
c = a.b;(*两个矩阵的乘积*)
c // MatrixForm
c[[2 ;;]][[All, {2, 3}]] // MatrixForm(*右下角4*2的小矩阵*)

 

 

  • 微信公众号
  • 关注微信公众号
  • weinxin
  • QQ群
  • 我们的QQ群号
  • weinxin
王 茂南

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: