How to repeat the condition for two matrices having different sizes?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Jitesh Dadich
am 25 Apr. 2019
Kommentiert: Jitesh Dadich
am 27 Apr. 2019
I have two matrices of two different sizes A (61 x 61 x 1085) & B (61 x 61 x 31)
I apply my conditions to first A(61 x 61 x 31) until it reaches to the size of B.
Now I want to repeat the same conditions for next A (61 x 61 x 32:62) until it reaches to the size of B....and so on...upto A(61 x 61 x 1085).
Anyone, thanks in advance.
5 Kommentare
Akzeptierte Antwort
Andrei Bobrov
am 25 Apr. 2019
Bearbeitet: Andrei Bobrov
am 26 Apr. 2019
I edited the answer.
out = A > B(:,:,mod(0:size(A,3)-1,size(B,3))+1);
3 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Multidimensional 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!