I would like to write a computation that will take a vector of 1xN length and then add adjacent matrix values .
1 次查看(过去 30 天)
显示 更早的评论
I would like to write a computation that will take a vector of 1xN length and then add adjacent matrix values .
e.g. [a+b,c+d,e+f,g+h,....etc]
My thoughts were to write something along the lines of n-(n-1), n-(n-2) to calculate this step.
However I don't want to continuously write this for a N=256 row.
How could I do this?
2 个评论
采纳的回答
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!