フィルターのクリア

Adding several variables together

4 ビュー (過去 30 日間)
Guillermo Lopez
Guillermo Lopez 2012 年 4 月 26 日
Hi: My question is probably very simple to solve but I am having trouble with how to do it: I have three matrices (30x30) saved with the name A_1, A_2, A_3. I would like to add them together so that it gives a new variable (lets call it totalA) which is also 30x30 and has a value in each cell which has been calculated by adding for example row 1,column 1 of A_1,A_2 and A_3 together. I have tried using load and sum (A_1,A_2,A_3) but it gives me some errors. Any help would be appreciated Guillermo

採用された回答

Daniel Shub
Daniel Shub 2012 年 4 月 26 日
Ummm, am I missing something?
totalA = A_1+A_2+A_3;
  1 件のコメント
Guillermo Lopez
Guillermo Lopez 2012 年 4 月 26 日
Probably not, something very stupid which I forgot...Im sorry and thanks for the help!

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMultidimensional Arrays についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by