Advertisement
eldieck

Untitled

Feb 12th, 2015
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.40 KB | None | 0 0
  1. load('a40001m.mat');
  2. ABP = val;
  3. FIVE_MIN = 37500; % samp_rate * 5min * 60sec/min -- should be an input in function
  4. num5MinSegments = 1;  % 1-based, not 0-based
  5. for num5MinSegments=1:length(ABP)/FIVE_MIN
  6.    sumVal(num5MinSegments) = sum(ABP(1+FIVE_MIN*(num5MinSegments-1):FIVE_MIN+FIVE_MIN*(num5MinSegments-1)));
  7. %    disp(1+37500*(num5MinSegments-1));
  8. %    disp(37500+37500*(num5MinSegments-1));
  9. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement