Clear Filters
Clear Filters

Info

This question is closed. Reopen it to edit or answer.

Not enough input arguments

2 views (last 30 days)
Nurul Ain Basirah Zakaria
Nurul Ain Basirah Zakaria on 20 Dec 2021
Closed: Rik on 20 Dec 2021
function [spei_index]=calculate_spei(t,prec,pevap,varargin);
[nlon, nlat, n]=size(prec);
prec=squeeze(prec);
for i=1:nlon
for j=1:nlat
if isnan(prec(i,j,1))==0
spei_index(i,j,:)=spei(t,prec(i,j,:),pevap(i,j,:),varargin);
else
spei_index(i,j,:)=ones(1,n-12)*NaN;
end
end
end
Error in calculate_spei (line 3)
[nlon, nlat, n]=size(prec);

Answers (0)

This question is closed.

Community Treasure Hunt

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

Start Hunting!