行列要素の足し算
13 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
可野 谷上
le 28 Déc 2020
Réponse apportée : Shunichi Kusano
le 28 Déc 2020
行の隣り合った要素を足して新たな行列を作りたいです。
例えば、
A=[1 2 3 4; 5 6 7 8; 9 10 11 12]
という3×4の行列があるとすると、
B=[1+2 2+3 3+4; 5+6 6+7 7+8; 9+10 10+11 11+12]
=[3 5 7; 11 13 15; 19 21 23]
という行列3×3のBを作りたいです。
よろしくお願いいたします。
0 commentaires
Réponse acceptée
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Creating and Concatenating Matrices dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!