How to add two different set values .

4 visualizaciones (últimos 30 días)
jaah navi
jaah navi el 18 de Abr. de 2019
Comentada: madhan ravi el 18 de Abr. de 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

Respuestas (1)

madhan ravi
madhan ravi el 18 de Abr. de 2019
Editada: madhan ravi el 18 de Abr. de 2019
A={4,5,3};
B={12};
[A{:}]+[B{:}]
  6 comentarios
jaah navi
jaah navi el 18 de Abr. de 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 el 18 de Abr. de 2019

Iniciar sesión para comentar.

Categorías

Más información sobre MATLAB en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by