adding adjacent n elements in a matrix
Show older comments
if i have a matrix like A= (1 2 3 4;5 6 7 8;9 10 11 12 ; 13 14 15 16) adding three adjacent elements will look like A(i,j)+A(i,(j+1))+A(i,(j+2)) how can i do this for n adjacent elements ?
Accepted Answer
More Answers (0)
Categories
Find more on Octave in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!