Error using nanstd function
Mostrar comentarios más antiguos
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{:}));
Respuesta aceptada
Más respuestas (1)
Steven Lord
el 17 de Dic. de 2019
0 votos
The ability to specify 'all' as a dimension in the var function (which the nanstd function calls) was introduced in release R2018b.
2 comentarios
Adam Evenoff
el 17 de Dic. de 2019
Steven Lord
el 17 de Dic. de 2019
M = magic(5);
M(3, 3) = NaN;
std(M(:), 'omitnan')
Categorías
Más información sobre Contour Plots en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!