Thursday, December 11, 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
32440 POSTS0 COMMENTS
Milvus
105 POSTS0 COMMENTS
Nango Kala
6811 POSTS0 COMMENTS
Nicole Veronica
11950 POSTS0 COMMENTS
Nokonwaba Nkukhwana
12023 POSTS0 COMMENTS
Shaida Kate Naidoo
6943 POSTS0 COMMENTS
Ted Musemwa
7194 POSTS0 COMMENTS
Thapelo Manthata
6889 POSTS0 COMMENTS
Umr Jansen
6880 POSTS0 COMMENTS