XUEYEYU


numpy


>>> import numpy as np
>>> a=np.array([1,2],[3,4])

array([[1, 2],
        [3, 4]])

>>> np.reshape(a,(1,4))

array([[1, 2, 3, 4]])


matlab


>> a=[1,2;3,4]

a =

     1     2
      3     4

>> reshape(a,1,4)

ans =

     1     3     2     4

分类:

技术点:

相关文章:

  • 2021-12-24
  • 2021-05-24
  • 2022-02-09
猜你喜欢
  • 2022-12-23
  • 2022-01-12
  • 2022-12-23
  • 2021-07-16
  • 2021-10-05
  • 2021-09-09
  • 2021-06-15
相关资源
相似解决方案