Range of a matrix
6 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
AUWAL ABUBAKAR
am 25 Mär. 2019
Kommentiert: Stephan
am 25 Mär. 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 Kommentare
Akzeptierte Antwort
Weitere Antworten (1)
AUWAL ABUBAKAR
am 25 Mär. 2019
1 Kommentar
Stephan
am 25 Mär. 2019
% 2D Array
ROI=rand(10,10)
Range1 = range(ROI(:))
% 3D Array
ROI=rand(10,10,3)
Range2 = range(ROI(:))
Siehe auch
Kategorien
Mehr zu Matrices and Arrays finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!