RobustDetrend

版本 9.4.0 (1.6 KB) 作者: Geoffrey Schivre
Use robustfit to detrend polynomial trend in data
196.0 次下载
更新时间 2018/11/2

查看许可证

Find the best polynome order and detrend data while preserving peak features in data.
To generate the miniature :

x = linspace(0,1,1000)';
peak = 0.008.*exp(-((x-0.3).^2)./(2*(0.05^2)))+0.01.*exp(-((x-0.7).^2)./(2*(0.025^2)));
peak = peak+polyval([-0.021,+0.008,0.021,0],x);
peak = peak-0.001+0.002.*rand(size(peak));
[polorder,~,trend] = RobustDetrend(peak,6,0.975,x);
figure; plot(x,peak,'b.',x,trend,'r--')

引用格式

Geoffrey Schivre (2024). RobustDetrend (https://www.mathworks.com/matlabcentral/fileexchange/69303-robustdetrend), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2018a
与 R2017b 及更高版本兼容
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Preprocessing Data 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
9.4.0