Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 26th, 2012  |  syntax: None  |  size: 0.17 KB  |  hits: 12  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Find vector's indices that hold elements greater than the elements in another vector
  2. X = [1 2 7 4 5 9 8]
  3. Y = [2 5]
  4.        
  5. Z = [3 4 6 7]
  6.        
  7. Z = X>max(Y);
  8.        
  9. Z = X>min(Y);