Guest User

Untitled

a guest
Apr 22nd, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. function do_pagerank_shit()
  2.  
  3.  
  4. % here goes the code to do some shit
  5.  
  6. A = make_matrix();
  7. do_some_shit();
  8.  
  9. if is_matrix_binary(A)
  10. do_some_shit();
  11. else
  12. fprintf('Matrix is not binary');
  13. end
  14.  
  15. function status = is_matrix_binary(A)
  16.  
  17. status = any(X ~= 1 & X ~=0);
Add Comment
Please, Sign In to add comment