How to add two different set values .
Ältere Kommentare anzeigen
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
Antworten (1)
madhan ravi
am 18 Apr. 2019
Bearbeitet: madhan ravi
am 18 Apr. 2019
A={4,5,3};
B={12};
[A{:}]+[B{:}]
6 Kommentare
jaah navi
am 18 Apr. 2019
madhan ravi
am 18 Apr. 2019
B={sum([A{:}])}
jaah navi
am 18 Apr. 2019
Walter Roberson
am 18 Apr. 2019
B={sum([A{:}])} is valid.
jaah navi
am 18 Apr. 2019
madhan ravi
am 18 Apr. 2019
A={4,5,3}
Kategorien
Mehr zu Entering Commands finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!