Advertisement
Guest User

Untitled

a guest
Oct 17th, 2019
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. function [ret] = find_priority(M)
  2. [m_rows, m_cols] = size(M);
  3. ret = [];
  4. for col = 1:m_cols
  5. M(:, col) = M(:, col)./sum(M(:, col));
  6. end
  7. for row = 1:m_rows
  8. ret = [ret; mean(M(row, :))];
  9. end
  10. endfunction
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement