Write a Matlab code to calculate the standard deviation of a
Write a Matlab code to calculate the standard deviation of an image A with size
(h × w).
Please give lines of code not just a description.
Thanks
Solution
example code for standard deviation of an image A is
here is h is 3 and w is 3 so 3 * 3 A matrix
>> A=[-1 2 3; 4 -5 6; 7 8 -9]
A =
-1 2 3
4 -5 6
7 8 -9
>> S = std(A)
S =
4.0415 6.5064 7.9373
>>
