Con risposta Logical Indexing

  • Saturday, December 17, 2011 10:51 PM
     
     
    Does Sho have a way of performing logical indexing similar to R or Matlab? I'm looking to take a vector x=[1, 2 , 3, 4] and do something like x>2 and get back a vector of [0 0 1 1]. Or I could write x[x>2] and return [3, 4]
    Peter Newhook SharePoint posts on my blog

All Replies