Yanıt Logical Indexing

  • 17 Aralık 2011 Cumartesi 22:51
     
     
    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

Tüm Yanıtlar