Skip to content

Commit

Permalink
Removed 'all' dimension from soilMoisture
Browse files Browse the repository at this point in the history
  • Loading branch information
JonKing93 committed Mar 11, 2021
1 parent e658c07 commit 9a63611
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions soilMoisture.m
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@
names = {'P','PE','awcs','awcu','ssi','sui'};
for k = 1:numel(args)
assert(isnumeric(args{k}), sprintf('%s must be numeric', names{k}));
assert(~any(isnan(args{k}) | isinf(args{k}) | ~isreal(args{k}), 'all'), ...
assert(~any(isnan(args{k}(:)) | isinf(args{k}(:)) | ~isreal(args{k}(:))), ...
sprintf('%s cannot contain NaN, Inf, or complex values', names{k}));
assert(all(args{k}>=0, 'all'), sprintf('%s cannot have negative values', names{k}));
assert(all(args{k}(:)>=0), sprintf('%s cannot have negative values', names{k}));
end

% Error check P and PE. Get sizes
Expand Down

0 comments on commit 9a63611

Please sign in to comment.