Standard Deviation Calculator

Version 1.4.0.0 (3.92 KB) by Kronos
This function computes the standard deviation of any vector or matrix.
77 Downloads
Updated 3 May 2017

View License

The user inputs the matrix variable name (or a matrix) as the first input(A) and a string, either 'vector' or 'matrix' for the second input(b). This allows for any vector or matrix to be computed. In V1.1, there will be a more detailed explanation for the inner workings of the code. In V1.2, there will be an option to return the true mean of the matrix/vector input. In V1.3, there will be an option to display the number of standard deviations each value within a matrix/vector is away from the mean. In V1.4, there will be an option to graph the result in a plot, with the values being put on the standard deviation curve where they belong. In V1.5, there will be a way to do a "double" deviation for matrices. That is, it will be possible for the standard deviation for the computed standard deviations to be computed without having to repeat the code within the command window.

Cite As

Kronos (2026). Standard Deviation Calculator (https://www.mathworks.com/matlabcentral/fileexchange/62773-standard-deviation-calculator), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2015b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Statistics and Machine Learning Toolbox in Help Center and MATLAB Answers
Version Published Release Notes
1.4.0.0

Fixed bug for hm and lm matrix computations where the output would be in a horizontal vector for an lm matrix and in a vertical vector for an hm matrix. Note: for matrices of the form sm the program will output the Standard Deviations for each row.

1.3.0.0

Actual upload of 1.02 doc due to stupidity.

1.2.0.0

Improved error messages and revised the MATLAB Version.

1.1.0.0

Just an explanation of the future plans for this code. Includes written summaries of the plans for the code through V1.5.

1.0.0.0