How to add two different set values .
Mostra commenti meno recenti
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
Risposte (1)
madhan ravi
il 18 Apr 2019
Modificato: madhan ravi
il 18 Apr 2019
A={4,5,3};
B={12};
[A{:}]+[B{:}]
6 Commenti
jaah navi
il 18 Apr 2019
madhan ravi
il 18 Apr 2019
B={sum([A{:}])}
jaah navi
il 18 Apr 2019
Walter Roberson
il 18 Apr 2019
B={sum([A{:}])} is valid.
jaah navi
il 18 Apr 2019
madhan ravi
il 18 Apr 2019
A={4,5,3}
Categorie
Scopri di più su Entering Commands in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!