code to obtain better curves
显示 更早的评论
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 个评论
Jan
2012-9-25
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
2012-9-25
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
2012-9-25
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.
采纳的回答
更多回答(1 个)
Kevin Claytor
2012-9-25
0 个投票
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".
类别
在 帮助中心 和 File Exchange 中查找有关 Smoothing and Denoising 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!