Community Profile

photo

Mike Sheppard


Active since 2011

Followers: 0   Following: 0

Message

Statistics

All
  • First Review
  • Thankful Level 1

View badges

Feeds

View by

Question


Row sums by vector indices without for loop?
Best illustrated by example M=rand(5,10); s=[1 3; 5 8; 9 10]; for i=1:size(s,1) sm(:,i)=sum(M(:,s(i,1):s(i,2)),2); en...

13 years ago | 2 answers | 1

2

answers