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

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

Connectez-vous pour commenter.

Réponse acceptée

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

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Matrix Indexing dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!