How to add two different set values .

1 回表示 (過去 30 日間)
jaah navi
jaah navi 2019 年 4 月 18 日
コメント済み: madhan ravi 2019 年 4 月 18 日
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
madhan ravi 2019 年 4 月 18 日
編集済み: madhan ravi 2019 年 4 月 18 日
A={4,5,3};
B={12};
[A{:}]+[B{:}]
  6 件のコメント
jaah navi
jaah navi 2019 年 4 月 18 日
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 2019 年 4 月 18 日

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeMATLAB についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by