My current code is this:
{for mdo=1:12
index_month = find(month==mdo);
month_mean = mean(avhrr.sst(index_month));
seasonal_cycle(mdo)=month_mean;
s_cycle_month(index_month) = month_mean;
end
hold on
plot(t, month_mean, 'r')}
When I run this, it produces a blank graph. I think the loop is correctly producing the seasonal cycle, how can I get it to plot the graph?
댓글 수: 1
이 댓글에 대한 바로 가기 링크
https://kr.mathworks.com/matlabcentral/answers/376376-writing-a-loop-to-calculate-a-seasonal-cycle-and-then-plot-the-seasonal-cycle#comment_659186
이 댓글에 대한 바로 가기 링크
https://kr.mathworks.com/matlabcentral/answers/376376-writing-a-loop-to-calculate-a-seasonal-cycle-and-then-plot-the-seasonal-cycle#comment_659186
댓글을 달려면 로그인하십시오.