Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

could anyone help me how to verify the standard deviation of matrix

1 visualización (últimos 30 días)
jaah navi
jaah navi el 25 de Sept. de 2019
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
A=[1 4 2]
when i used the command std(A) i am getting the result to be 1 5275.
But when i calculate manually i am getting different answer.could anyone please help me how to manually calculate standard deviation.

Respuestas (2)

KALYAN ACHARJYA
KALYAN ACHARJYA el 25 de Sept. de 2019
Editada: KALYAN ACHARJYA el 25 de Sept. de 2019
Matlab: (Uses divide by N-1)
>> A=[1 4 2];
>> std(A)
ans =
1.5275
std.png

Steven Lord
Steven Lord el 25 de Sept. de 2019
To normalize by the number of observations minus 1 (the default behavior) call std with 1 input or with a second input of 0.
To normalize by the number of observations specify the second input to std (named w in the documentation) as 1.
A = [1 4 2];
normalizeByNminus1 = std(A)
normalizeByN = std(A, 1)

La pregunta está cerrada.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by