repnan

버전 1.0.0.0 (323 KB) 작성자: Chad Greene
Replace NaNs in a 1D array by interpolation
다운로드 수: 1.9K
업데이트 날짜: 2014/11/1

라이선스 보기

This function replaces NaN values in a 1D array with interpolated or neighboring values. Interpolation schemes assume data are evenly spaced. This function does not extrapolate.

Syntax
x = repnan(x);
x = repnan(x,method);

Description
x = repnan(x) returns x sans NaNs.

x = repnan(x,method) specifies a method for replacing the original x's NaNs. Methods can be

'linear' (default) performs linear interpolation over missing values in x,
'nearest' performs nearest-neighbor interpolation,
'spline' performs spline interpolation using not-a-knot end conditions,
'pchip' is shape-preserving piecewise cubic interpolation,
'cubic' same as 'pchip',
'v5cubic' cubic convolution via Matlab v5 algorithm
'next' replaces NaN values in x with the next non-NaN value in x,
'previous' replaces NaN values in x with the previous non-NaN value in x,

인용 양식

Chad Greene (2024). repnan (https://www.mathworks.com/matlabcentral/fileexchange/48324-repnan), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2012b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!

repnan/html/

버전 게시됨 릴리스 정보
1.0.0.0