Merge branch 'femwind' of https://github.com/openwfm/wrf-fire-matlab into femwind
[wrf-fire-matlab.git] / util1_jan / ssum.m
blob33b6aaf6c94787ea4d6ebe899b9889f98198f8a7
1 function s=ssum(a)
2 % s=ssum(a)  
3 % sum of any array, arbitrary number of dimensions, ignoring any nans
4 s=sum(a(~isnan(a(:))));
5 end