# Standard Deviation Calculation In MatLab®(Illustrated Expression)

Standard deviations are very important calculations in data analysis. Because it gives very important analyses and results from given numeric data. As you know that Matlab® software is very good in data analysis and mathematical manipulations like that. So you can calculate standard deviations in Matlab® very easily. This article on Mechanicalland shows you how to calculate standard deviation values with Matlab® coding.

On this post

## How To Calculate Standard Deviation In MatLab®?

``````>> a = [2 6 2 64 23 45 632 45 6823];
b = [263 62 626; 65 56 562; 5412 12621 26];
std(a)
std(b)

ans =

2.249237784475245e+03

ans =

1.0e+03 *

3.031551143116892   7.252674702020857   0.329492539116341

>> ``````

We created an ‘a’ vector and a ‘b’ matrix to show you how to calculate their standard deviations in MatLab®.

The ‘a’ vector’s standard deviation value is calculated with the std() command in Matlab®. So we can understand that there is a one standard deviation value.

Also, the standard deviation value of the matrix ‘b’ is calculated with the std() command in Matlab®. So each row’s standard deviation value of matrices calculated separately in Matlab®.

## Conclusion

So it is very easy to calculate standard deviation values of matrices and vectors in Matlab® programming.

Do not forget to leave your comments and questions below about the use of the ‘std()’ command in Matlab® below.

If you want further coding examples about the ‘std()’ command in Matlab®, inform us in the comments.