필터 지우기
필터 지우기

How to refill the Missing values to complete the sequence

조회 수: 6 (최근 30일)
Stephen john
Stephen john 2022년 4월 16일
편집: KSSV 2022년 4월 16일
Hello Everyone, i hope you are doing well.
I have the following data, in the data i have two pattern at 2200 and 1800
There are some missing values which exist at the values of 4000
I want generlize code to complete the sequence using the missing value at 4000 e.g they should be refill in the pattern
How can i do that in matlab

답변 (1개)

KSSV
KSSV 2022년 4월 16일
편집: KSSV 2022년 4월 16일
Read about fillmissing.
load('Values.mt') ;
idx = Values == 4000 ; % get missing values i.e. 4000
Values(idx) = NaN ; % replace missing values/ 4000 with NaNs
Values = fillmissing(Values,'linear') ; % use fillmissing. You can explore other options too.

카테고리

Help CenterFile Exchange에서 Data Type Identification에 대해 자세히 알아보기

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by