Skip to content

Instantly share code, notes, and snippets.

@ihzarizkyk
Last active May 29, 2020 23:14
Show Gist options
  • Save ihzarizkyk/437ba050e061f0f04f67c3bc0c6c08e8 to your computer and use it in GitHub Desktop.
Save ihzarizkyk/437ba050e061f0f04f67c3bc0c6c08e8 to your computer and use it in GitHub Desktop.
import numpy as np
matriksC = np.array([[1,2,3],
[4,5,6]])
print("Matriks C : ")
print(matriksC)
transpose_matriks = np.transpose(matriksC)
print("Tranpose Matriks C : ")
print(transpose_matriks)
'''
Output :
Matriks C :
[[1 2 3]
[4 5 6]]
Tranpose Matriks C :
[[1 4]
[2 5]
[3 6]]
'''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment