How to add two different set values .
显示 更早的评论
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
回答(1 个)
madhan ravi
2019-4-18
编辑:madhan ravi
2019-4-18
A={4,5,3};
B={12};
[A{:}]+[B{:}]
6 个评论
jaah navi
2019-4-18
madhan ravi
2019-4-18
B={sum([A{:}])}
jaah navi
2019-4-18
Walter Roberson
2019-4-18
B={sum([A{:}])} is valid.
jaah navi
2019-4-18
madhan ravi
2019-4-18
A={4,5,3}
类别
在 帮助中心 和 File Exchange 中查找有关 Entering Commands 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!