Missing NaN functions?
显示 更早的评论
When I type >>help nansum in the command window, matlab returns "nansum not found." even though the function does exist in the documentation for the R2011a version. Is it possible that these functions (i.e. nansum, nanmean etc.) didn't install correctly, were they not included in R2011a, or do they exist under a new name? Thanks!
1 个评论
Yella
2011-6-20
I use matlab 2010a... i have those functions.... FYKI
采纳的回答
更多回答(1 个)
Andrei Bobrov
2011-6-20
so nansum
Xnan20 = X;
Xnan20(isnan(X))=0;
out = sum(Xnan20);
类别
在 帮助中心 和 File Exchange 中查找有关 Library Domains 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!