三次元行列の足し算について

14 views (last 30 days)
shunya hara
shunya hara on 25 Sep 2020
Commented: shunya hara on 27 Sep 2020
三次元行列の足し算についてお伺いしたいです。私は(2048,2048,300)でできた行列A,Bの要素の和を求めたいです。(A+Bをしました) その際に処理の終了後、(2048,2048,1),(2048,2048,2),(2048,2048,3)......のように完成した行列が画面上に羅列されました。大量の要素を有しているのでこの行列を羅列する作業を省きたいです。どうしたらよいですか?forを使うのがよいですか?
  1 Comment
shunya hara
shunya hara on 25 Sep 2020
例えば C=A(3,3,3)+B(3,3,3) とうつと C(3,3,1)= C(3,3,2)= C(3,3,3)= というように羅列されます。この羅列がされない方法を知りたいです。

Sign in to comment.

Accepted Answer

michio
michio on 25 Sep 2020
C=A(3,3,3)+B(3,3,3);
のように最後にセミコロン(;)を付けると表示はされなくなります。
  1 Comment
shunya hara
shunya hara on 27 Sep 2020
ありがとうございます!!

Sign in to comment.

More Answers (0)

Categories

Find more on Matrix Indexing in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!