I have a variable named T_t which is of dimension [1 20]. How do i add a normal error with a standard deviation of 1 to it?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
BrokenDreams
el 10 de Jul. de 2019
Respondida: Bjorn Gustavsson
el 10 de Jul. de 2019
I wrote T_t=T_t+1*randn(size(T_t));
But when i check the standard deviation using std( T_t(:) ) i get the value as 51. Pls help me with the correct code.
0 comentarios
Respuesta aceptada
Bjorn Gustavsson
el 10 de Jul. de 2019
Well, you would only get a standard deviation approximately equal to 1 if you have T_t constant for all 20 elements. If you compare std before and after adding your noise you'll see. For comparison you should also remember that variances add, not standard deviations.
HTH
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Matched Filter and Ambiguity Function en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!