How to fit a smooth curve inside an edge while plotting a 2D figure
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Hi,
I have a 2D plot with an edge, I would like to remove the edge as shown in the figure attached and replace with a smooth curve inside (red curve). Could someone provide a good solution.
thanks.
0 Commenti
Risposte (1)
Image Analyst
il 3 Gen 2017
You can smooth the y values:
ySmoothed = conv(y, ones(1, 51), 'same');
Change the 51 depending on whether you want more or less smoothing, but keep it an odd integer.
Vedere anche
Categorie
Scopri di più su Smoothing in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!