add weight support to matlab ports of column wise metrics