Error using nanstd function
15 次查看(过去 30 天)
显示 更早的评论
B=nanstd(X,0,'all');
when using the above statement in Matlab R2019a there are no problems, however when using it on another computer with R2017a, i get the error:
Error using size
Dimension argument must be a positive integer scalar within indexing range.
Error in var (line 109)
n = size(x,dim);
Error in nanvar (line 32)
y = var(varargin{:},'omitnan');
Error in nanstd (line 28)
y = sqrt(nanvar(varargin{:}));
0 个评论
采纳的回答
更多回答(1 个)
Steven Lord
2019-12-17
The ability to specify 'all' as a dimension in the var function (which the nanstd function calls) was introduced in release R2018b.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Contour Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!