How to add two different set values .

조회 수: 3 (최근 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 CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by