Friday, November 14, 2025
HomeLanguagesPython | Numpy matrix.std()

Python | Numpy matrix.std()

With the help of matrix.std() method, we are able to find the standard deviation a matrix by using the same method.

Syntax : matrix.std()
Return : Return standard deviation of a matrix

Example #1 :
In this example we are able to find the standard deviation of a matrix by using matrix.std() method.




# import the important module in python
import numpy as np
             
# make matrix with numpy
gfg = np.matrix('[4, 1; 12, 3]')
             
# applying matrix.std() method
geek = gfg.std()
   
print(geek)


Output:

4.18330013267

Example #2 :




# import the important module in python
import numpy as np
             
# make matrix with numpy
gfg = np.matrix('[4, 1, 9; 12, 3, 1; 4, 5, 6]')
             
# applying matrix.std() method
geek = gfg.std()
   
print(geek)


Output:

3.3993463424
Dominic
Dominichttp://wardslaus.com
infosec,malicious & dos attacks generator, boot rom exploit philanthropist , wild hacker , game developer,
RELATED ARTICLES

Most Popular

Dominic
32399 POSTS0 COMMENTS
Milvus
95 POSTS0 COMMENTS
Nango Kala
6765 POSTS0 COMMENTS
Nicole Veronica
11917 POSTS0 COMMENTS
Nokonwaba Nkukhwana
11984 POSTS0 COMMENTS
Shaida Kate Naidoo
6889 POSTS0 COMMENTS
Ted Musemwa
7141 POSTS0 COMMENTS
Thapelo Manthata
6837 POSTS0 COMMENTS
Umr Jansen
6840 POSTS0 COMMENTS