add lines cell matlab
显示 更早的评论
i have two edit texts,they show the vectors :
1 1 1 1 and 1 -1 1 1
-1 1 1 1 -1 1 1 -1
how can i add the two first lines together and the two secondes lines together and the result is :
2 0 2 2
0 2 2 0
采纳的回答
更多回答(1 个)
KSSV
2016-11-24
0 个投票
Let A and B be your matrices.
iwant = A+B;
Best programmer please read basics of matlab.
类别
在 帮助中心 和 File Exchange 中查找有关 Cell Arrays 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!