performance - MATLAB scaled repmat -
is there easy way have scaled repmat in matlab?
the idea is, given matrices a
, b
result = [a*b(1, 1) a*b(1, 2) a*b(1, 3) ... a*b(1, n); a*b(2, 1)...];
right accomplish using permute , reshape, permutation operation 90% of script time.
i think looking kron
:
result = kron(b, a);
Comments
Post a Comment