Filter löschen
Filter löschen

Subtracting multiple matrices from the same matrix

1 Ansicht (letzte 30 Tage)
Robert
Robert am 19 Okt. 2015
Kommentiert: Robert am 19 Okt. 2015
I have a 3D matrix (35,43,144) and a 2D matrix (35,43)
I need to produce 144 new 35x43 matrices by subtracting the 2D matrix from each of the 144 matrices in the 3D matrix. I am unsure how to do this as the matrices do not have consistent dimensions.
Thank you in advance for any help

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 19 Okt. 2015
bsxfun(@minus, The3DMatrix, The2DMatrix)

Weitere Antworten (0)

Kategorien

Mehr zu Matrix Indexing finden Sie in Help Center und File Exchange

Tags

Produkte

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by