Cell by cell evaluation across dimensions
Ältere Kommentare anzeigen
I'll start with I'm brand new to MATLAB, with only about 10 hours of trainging with it. It seems like as soon as I get close to an answer in a training document or video, it stops with the topic and moves on to something else.
If create 4, 3x3 arrays of random numbers using : data = rand(3,3,4)
I get:
data(:,:,1) =
0.6312 0.2242 0.3872
0.3551 0.6525 0.1422
0.9970 0.6050 0.0251
data(:,:,2) =
0.4211 0.3704 0.5710
0.1841 0.8416 0.1769
0.7258 0.7342 0.9574
data(:,:,3) =
0.2653 0.3736 0.1806
0.9246 0.0875 0.0451
0.2238 0.6401 0.7232
data(:,:,4) =
0.3474 0.6273 0.8006
0.6606 0.0216 0.7458
0.3839 0.9106 0.8131
I'm trying to find the highest value of a cell across all for pages so the end result would be something like
Result =
0.6312 0.6273 0.8006
0.9246 0.8416 0.7458
0.9970 0.9106 0.9574
I've been trying to use the max function, but I can't seem to get it to go the right way. I'm fine across row's and columes but not for a cell going though pages.
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Creating and Concatenating Matrices finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!