单项选择题

产生两个0-1之间均匀分布的、4´4阶的随机数矩阵A和B,然后对两个矩阵进行求和、相乘、元素群相乘和相除(A为被除矩阵)以及A矩阵的3次方运算。下列完成以上运算的哪个程序正确?

A.         A=rand(4,4);
  B=rand(4,4);
  A+B
  A*B
  A.*B
  B./ A
  A^3       
B.         A=rand(4,4);
  B=rand(4,4);
  A.+B
  A*B
  A.*B
  A./B
  A^3       
C.         A=rand(4,4);
  B=rand(4,4);
  A+B
  A*B
  A.*B
  A./B
  A.^3       
D.         A=rand(4,4);
  B=rand(4,4);
  A+B
  A*B
  A.*B
  A./B
  A^3       
微信扫码免费搜题