How to plot 'smooth' cell array graphs
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Jonathan Cheong
el 15 de Mzo. de 2021
Respondida: Asvin Kumar
el 18 de Mzo. de 2021
Hello, I would like to 'smooth' out the curves of these plots and plot it on top of the exisitng 'noisy' graph.
for ci= 1:length(datecell)
figure,plot(datecell{ci},smcell{ci});
end
grid on;
Where it should look like the red curve:
I have tried using 'rmoutliers' or 'smooth' functions but they do not work, possibly due to bad coding.
Many thanks in advance.
0 comentarios
Respuesta aceptada
Asvin Kumar
el 18 de Mzo. de 2021
You're looking for the fit function from the Curve Fitting Toolbox. There are some great examples on the doc page that should help you get started.
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Curve Fitting Toolbox 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!