Range of a matrix
69 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
AUWAL ABUBAKAR
el 25 de Mzo. de 2019
Comentada: Stephan
el 25 de Mzo. de 2019
Hi all,
I tried to find 'range' of a matrix but always return error. For example;
Data=rand(10,10)
range(Data,'all') always return the follwing error;
''Error using max
Invalid option. Option must be 'omitnan' or 'includenan'.
Error in range (line 20)
y = max(x,[],dim) - min(x,[],dim);''
Does anyone knows whats the problem please?
thanks
0 comentarios
Respuesta aceptada
Más respuestas (1)
AUWAL ABUBAKAR
el 25 de Mzo. de 2019
1 comentario
Stephan
el 25 de Mzo. de 2019
% 2D Array
ROI=rand(10,10)
Range1 = range(ROI(:))
% 3D Array
ROI=rand(10,10,3)
Range2 = range(ROI(:))
Ver también
Categorías
Más información sobre Matrix Indexing en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!