cut samples - interpolation

版本 1.0.0.0 (1.0 KB) 作者: Aslak Grinsted
Interpolates irregular spaced data by 'cutting' the x axis into specified intervals.
3.4K 次下载
更新时间 2006/3/24

无许可证

A useful function for putting irregular spaced data on a regular spaced axis. Also works when the data locally has higher sampling resolution than the desired.

Example:
%create fake irregular spaced data
x=sort(rand(30,1));
y=sin(x*5)+randn(30,1)*.3;

%define the start and end intervals we want to have representative values of.

xsi=(-.2:.3:1.3)';
xei=xsi+.3;

%cut data into intervals ranging from xsi to xei:
yi=cutsamples(x,y,xei,xsi);

引用格式

Aslak Grinsted (2025). cut samples - interpolation (https://ww2.mathworks.cn/matlabcentral/fileexchange/3447-cut-samples-interpolation), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R11
兼容任何版本
平台兼容性
Windows macOS Linux

Community Treasure Hunt

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

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

Updated to that it can handle series with nans