MATLAB Answers


standard deviation array double

Asked by Guido Pastore on 3 Mar 2019
Latest activity Commented on by Steven Lord
on 3 Mar 2019
How to make the standard deviation of a double array??


Sign in to comment.

1 Answer

Answer by Image Analyst
on 3 Mar 2019
 Accepted Answer

Use std():
sd = std(yourDoubleArray(:))

  1 Comment

Steven Lord
on 3 Mar 2019
If you're using release R2018b or later you can use the 'all' flag to compute the standard deviation of the array as a whole.
std(yourDoubleArray, 0, 'all')

Sign in to comment.