2D subtraction from 3D
Ältere Kommentare anzeigen
I have 3D matrix A=50x60x180 and I want subtract B=50x60 to get same size C=50x50x180? Can anybody use for loop to do this operation?
2 Kommentare
John Chilleri
am 21 Sep. 2017
C = zeros(50,60,180);
for i = 1:180
C(:,:,i) = A(:,:,i) - B;
end
Is this what you mean?
Andrei Bobrov
am 21 Sep. 2017
?
size of the C -> [50x 50 x180]? Maybe - [50x 60 x180]
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Logical finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!