필터 지우기
필터 지우기

How to fill in gaps with reasonable values

조회 수: 2 (최근 30일)
Samantha Chong
Samantha Chong 2015년 11월 2일
답변: Image Analyst 2015년 11월 2일
Hi Guys, Please find attached my .xlsx file, the data in column 1 of my Excel file has different number of gaps (i.e 1 gap, 2 gaps, 3 gaps, 5 gaps, 6 gaps). I need help in filling the gaps with reasonable values. So, when I'm reading the Excel file on Matlab, the missing gaps become "NaN". My question is if there's a way to fill in the cells only when the number of gaps is <= 5. And just ignore those if the number of gaps is >5?

답변 (1개)

Image Analyst
Image Analyst 2015년 11월 2일
If you have the Image Processing Toolbox, you can use regionfill().

카테고리

Help CenterFile Exchange에서 Data Import from MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by