Empty array of cells in my results

Hi
So I ran an eemd script only to find out that in the results, some cells were empty. What could have caused that? I am still learning to use MATLAB
Screenshot from 2019-08-28 12-05-38.png

댓글 수: 3

madhan ravi
madhan ravi 2019년 8월 28일
Upload the script instead of a screenshot.
Boipelo Thande
Boipelo Thande 2019년 8월 28일
Find the attached data and script
The reason for empty cells is because EEMDIMF1 itself is empty. The code in the for loop is not getting executed beyond this line if length(x(f))<num, continue, end .
for l = 0:numgridpoints
x = EVI((num*l+1):num*(l+1),1);
lat = y.tsevi((num*l+1):num*(l+1),4);
lon = y.tsevi((num*l+1):num*(l+1),3);
startDate = datenum('01-01-2000');
endDate = datenum('12-31-2016');
xData = linspace(startDate,endDate,length(x));
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%% Removing empty and small data
f = ~isnan(x);
if isempty(x(f)), continue, end
if length(x(f))<num, continue, end
%%%%%%
%--- code after this is not getting executed

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 Dates and Time에 대해 자세히 알아보기

제품

릴리스

R2017b

질문:

2019년 8월 28일

댓글:

2019년 9월 11일

Community Treasure Hunt

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

Start Hunting!

Translated by