matthiasm@8: function bigT = mult_by_table(bigT, bigdom, bigsz, smallT, smalldom, smallsz) matthiasm@8: % MULT_BY_TABLE matthiasm@8: % bigT = mult_by_table(bigT, bigdom, bigsz, smallT, smalldom, smallsz) matthiasm@8: % matthiasm@8: matthiasm@8: Ts = extend_domain_table(smallT, smalldom, smallsz, bigdom, bigsz); matthiasm@8: bigT(:) = bigT(:) .* Ts(:); % must have bigT(:) on LHS to preserve shape