Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function [ret] = find_priority(M)
- [m_rows, m_cols] = size(M);
- ret = [];
- for col = 1:m_cols
- M(:, col) = M(:, col)./sum(M(:, col));
- end
- for row = 1:m_rows
- ret = [ret; mean(M(row, :))];
- end
- endfunction
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement