フィルターのクリア

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)
  1 件のコメント
Robert
Robert 2015 年 10 月 19 日
Perfect, thanks

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMatrix Indexing についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by