I have a 3d matrix (19x21x23) having the mean AOD values. I wish to calculate the trend of each grid of the matrix. But I have NaN values in my data, hence it is creating a problem. Can you suggest me the correct code for doing the same?

1 view (last 30 days)
y=1:21;
% = mat2cell(y,1*ones(1,1),11); % Mcell = mat2cell(aa,589,repmat(1,11,1));
kq= zeros(19,2); X = mat2cell(winter,1*ones(19,1),21); for i=1:19; for k=1:23; u(i,:,:)= winter(i,:,:); kq(i,:,:)= polyfit(u(i,:,:),y,1); end

Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!