curve fitting my plot

trying to make my curve smooth instead of at a point. any insight will help. thank you

 Risposta accettata

Ameer Hamza
Ameer Hamza il 22 Mar 2020
You are making graph of . It is expected to be pointy. You can make graph of some other function like
f = @(x,k) exp(-k*x.^2);
which will have smooth peak.

1 Commento

Try smoothdata() or conv():
signal = conv(signal, ones(1, 30)/30, 'same');
This will blur it out and smooth it.

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su 2-D and 3-D Plots in Centro assistenza e File Exchange

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by