필터 지우기
필터 지우기

Subtracting multiple matrices from the same matrix

조회 수: 2 (최근 30일)
Robert
Robert 2015년 10월 19일
댓글: Robert 2015년 10월 19일
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

채택된 답변

Walter Roberson
Walter Roberson 2015년 10월 19일
bsxfun(@minus, The3DMatrix, The2DMatrix)

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Matrix Indexing에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by