adding same size cell arrays
11 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Assume I have a matrices C1,C2 as follows:
C1 = nx1 cell each cell is [5x5 double].
C2 = nx1 cell each cell is [5x5 double].
How to calculate C3 as:
C3{1,1} = C1{1,1}+C2{1,1};
C3{2,1} = C1{2,1}+C2{2,1};
.
.
C3{n,1} = C1{n,1}+C2{n,1};
using cellfun or any other method without looping
0 commentaires
Réponse acceptée
Plus de réponses (1)
Sean de Wolski
le 28 Déc 2015
If you have the neural networks toolbox:
gadd(A,B)
1 commentaire
Greg Heath
le 29 Déc 2015
command line documentation
help gadd
doc gadd
See also gsubtract, gmultiply, gdivide, gnegate.
Voir également
Catégories
En savoir plus sur Matrix Indexing 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!