How to add two different set values .

3 vues (au cours des 30 derniers jours)
jaah navi
jaah navi le 18 Avr 2019
Commenté : madhan ravi le 18 Avr 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

Réponses (1)

madhan ravi
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
jaah navi le 18 Avr 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 le 18 Avr 2019

Connectez-vous pour commenter.

Catégories

En savoir plus sur MATLAB dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by