code to obtain better curves
Ältere Kommentare anzeigen
I am new with matlab and i am having this following problem. i have a little noise on my plots.
I need to smooth the curves. could you please tell me what i should do to achieve that. i was thinking in applying some filter but i don't really know if it is the appropriate thing to do in matlab, and if so what kind of filter to use. I would be very grateful if you could help me also with some code. i need an automatic way to do this since i have kind of 60 plots i need to solve this type of problem using matlab, and i am new with this software.
thank you so so much guys!
3 Kommentare
Jan
am 25 Sep. 2012
Please do not post graphics in DOCX format. A picture file would be much smarter. XLSX is not a useful format also, because you need addiotnal programs to read it.
Jan
am 25 Sep. 2012
When I click on the PHP link you have posted, I get an error=8 message and I'm asked to login. I will not sign in an internet service only to see a picture for a question. Please send a mail to MathWorks and ask for the possibility to host picture directly. You find the mail address on the bottom of this page. I hope that this feature is implemented, when 1000 users ask for it.
Ryan
am 25 Sep. 2012
Do you have the curve fitting toolbox? If so, type help smooth in the Matlab command line. Else you'll need to use help filter.
Akzeptierte Antwort
Weitere Antworten (1)
Kevin Claytor
am 25 Sep. 2012
0 Stimmen
If you have the curve-fitting toolbox, smooth might be a good place to start; http://www.mathworks.com/help/curvefit/smooth.html
There is also the built-in filter function; http://www.mathworks.com/help/matlab/ref/filter.html. Here you have to design the filter; as per their example, you can do simple N point averaging with the filter function "ones(1,N)/N".
Kategorien
Mehr zu Smoothing and Denoising finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!