Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- close all
- clear all
- clc
- % generate x
- Tx = 10;
- tx = 1:Tx:100;
- x = 10*tx;
- % generate y
- Ty = 1;
- ty = 1:Ty:100;
- y = ty.^2;
- % aggregate
- yacc = accumarray(fix(ty / Tx) + 1, y, [], @mean);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement