add lines cell matlab
Show older comments
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
Accepted Answer
More Answers (1)
KSSV
on 24 Nov 2016
0 votes
Let A and B be your matrices.
iwant = A+B;
Best programmer please read basics of matlab.
Categories
Find more on Cell Arrays in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!