Calculate Running average of large data set
    9 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    Benjamin Cowen
 el 14 de Ag. de 2018
  
    
    
    
    
    Respondida: Naman Chaturvedi
    
 el 17 de Ag. de 2018
            I have a data structure. I can plot the time vs. temp using this command:
scatter(getcolumn(C{1, 1}(:,[1,6]),1), getcolumn(C{1, 1}(:,[1,6]),2))
The problem is I have so much data, there is a lot of noise. How can I plot the a moving average which uses X amount of points before the current point (and including the current point)
0 comentarios
Respuesta aceptada
  Naman Chaturvedi
    
 el 17 de Ag. de 2018
        Hello Benjamin,
>> M = movmean(A,[kb kf]) %computes the mean with a window of length kb+kf+1 that includes the element in the current position, kb elements backward, and kf elements forward.
Hope this helps.
0 comentarios
Más respuestas (0)
Ver también
Categorías
				Más información sobre 2-D and 3-D Plots 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!

