How to add two different set values .

1 Ansicht (letzte 30 Tage)
jaah navi
jaah navi am 18 Apr. 2019
Kommentiert: madhan ravi am 18 Apr. 2019
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
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
jaah navi am 18 Apr. 2019
when i run the following code
A={4} {5} {3}
B={sum([A{:}])}
I am getting error stating Unbalanced or unexpected parenthesis or
bracket with respect to the command line A={4} {5} {3}.Could you please help me on this.
madhan ravi
madhan ravi am 18 Apr. 2019

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Creating and Concatenating Matrices finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by