How can I use plus operation with more than 2 array
显示 更早的评论
I try to plus with many array. For example plus(A,B,C,D,...Z) with A = [1,2,3:4,1,2] B = [3,5,6,:5,6,7] and so on and I've got this message
"??? Error using ==> plus Too many input arguments."
How can I solve this? Thank you in advance for your answer
采纳的回答
更多回答(1 个)
David Young
2016-2-1
Either use
A + B + C + D + Z
or
plus(A, plus(B, plus(C, plus(D, Z))))
类别
在 帮助中心 和 File Exchange 中查找有关 Matrix Indexing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!