I have the following bit of code and when I run it, I get the error message "Undefined function 'nansum' for input arguments of type 'double'."

I have the following bit of code and when I run it, I get the error message "Undefined function 'nansum' for input arguments of type 'double'." I am not sure how to address this. As far as I know, 'nansum' is a general Matlab function, and this error typically comes up when a function is not in the working directory.

 Accepted Answer

nansum() is not a general MATLAB function: it is part of the Statistics toolbox.

1 Comment

Ok, that definitely changes how I will approach this.
Thank you very much for pointing that out!

Sign in to comment.

More Answers (0)

Categories

Community Treasure Hunt

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

Start Hunting!