Standard deviation of 2D array

6 views (last 30 days)
I am trying to calculate the standard deviation of 2D array 'v' of dimesnion 89 x 97.
I have tried as follows ,but it returns the output in the form of 1 x 97 instread of 89 x 97. Could someone help me with this
V1 = std (v);

Accepted Answer

Star Strider
Star Strider on 6 Nov 2021
The standard deviation of a scalar is 0 so the result is —
standard_deviation_v = zeros(size(v))
in this instance.

Sign in to comment.

More Answers (0)


Find more on Matrices and Arrays in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by