Standard Deviation

10 visualizaciones (últimos 30 días)
Firoz Alam
Firoz Alam el 28 de Sept. de 2011
Hi, I have S=[2 4 4 4 5 5 7 9]; can any one tell me how can I count and plot standard deviation in this values?
  2 comentarios
Image Analyst
Image Analyst el 28 de Sept. de 2011
Sorry, no. Not until you supply more info on what you mean, like why you expect more than one standard deviation from that set of observations.
Firoz Alam
Firoz Alam el 29 de Sept. de 2011
or if the data set is s = [1:5; 6:10; 11:15], what will b the Std and std plot plz ? each row represent freq and column measurement valus... hope u undstd now

Iniciar sesión para comentar.

Respuesta aceptada

Walter Roberson
Walter Roberson el 29 de Sept. de 2011
numdev = floor((mean(S)-min(S))./std(S));
Determining the position of each standard deviation and plotting is left as a homework exercise.
Though possibly you want
numdev = floor((mean(S,2)-min(S,[],2))./std(S,[],2));
  4 comentarios
Firoz Alam
Firoz Alam el 30 de Sept. de 2011
thnx :)
Shivakumar
Shivakumar el 25 de Sept. de 2013
Thank you. I was helped by the answer.

Iniciar sesión para comentar.

Más respuestas (1)

the cyclist
the cyclist el 29 de Sept. de 2011
The standard deviation of the values in S can be calculated with the std() command:
>> std(S)
I'm not sure what you mean by plotting that standard deviation.
  3 comentarios
the cyclist
the cyclist el 29 de Sept. de 2011
Sorry, but I am very confused. The standard deviation is one number. What exactly do you want to plot? What are you trying to do, see, or understand about that set of numbers by plotting? Type "help plot" for help on one simple plotting command.
Firoz Alam
Firoz Alam el 30 de Sept. de 2011
its done ! thnx :)

Iniciar sesión para comentar.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by