필터 지우기
필터 지우기

Input a vector whose number of elements is NaN. Let's replace the NaN elements in the vector with the previous value.

조회 수: 2 (최근 30일)
help me :Input a vector whose number of elements is NaN. Let's replace the NaN elements in the vector with the previous value.

답변 (1개)

Chunru
Chunru 2021년 9월 5일
A = [1 3 NaN 4 NaN NaN 5];
F = fillmissing(A,'previous')
F = 1×7
1 3 3 4 4 4 5

카테고리

Help CenterFile Exchange에서 Fourier Analysis and Filtering에 대해 자세히 알아보기

태그

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by