Tagged: repmat

bsxfun

bsxfun – Apply element-by-element binary operation to two arrays with singleton expansion enabled Syntax C = bsxfun(fun,A,B) Description C = bsxfun(fun,A,B) applies an element-by-element binary operation to arrays A and B, with singleton expansion...

accumarray

Construct array with accumulation Syntax A = accumarray(subs,val) A = accumarray(subs,val,sz) A = accumarray(subs,val,sz,fun) A = accumarray(subs,val,sz,fun,fillval) A = accumarray(subs,val,sz,fun,fillval,issparse) A = accumarray({subs1, subs2, …}, val, …) Description accumarray groups elements from a data...