how can I plot smooth graph
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
I do have much noise in the data from a test. So my graph doesn't look good. y axis data are consistent however x axis data have fluctuation. How can I smooth the graph like the black graph in the picture keeping the maximum value of y in matlab?
1 comentario
Raghunandan V
el 14 de Mzo. de 2019
I think there is a seperate tool; box for this purpose(Curve Fitting Toolbox). Check it out.
Respuestas (1)
Arvind Sathyanarayanan
el 14 de Mzo. de 2019
A moving average filter might do the job. Play around with the number of points to preserve the peak value.
N = 10;
h = (1/N)*ones(1,N);
filtered = conv(orginal, h);
filtered = filtered(N:end);
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!