How to add two different set values .
Afficher commentaires plus anciens
I ma having two different sets having the values in the following manner
A={4} {5}{3)
I want to add it together by having
B={12}.
I tried with the command B=sumA
But i am getting error.
could anyone please help me to get it
Réponses (1)
madhan ravi
le 18 Avr 2019
Modifié(e) : madhan ravi
le 18 Avr 2019
A={4,5,3};
B={12};
[A{:}]+[B{:}]
6 commentaires
jaah navi
le 18 Avr 2019
madhan ravi
le 18 Avr 2019
B={sum([A{:}])}
jaah navi
le 18 Avr 2019
Walter Roberson
le 18 Avr 2019
B={sum([A{:}])} is valid.
jaah navi
le 18 Avr 2019
madhan ravi
le 18 Avr 2019
A={4,5,3}
Catégories
En savoir plus sur Entering Commands dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!