none
Logical Indexing

    Pertanyaan

  • 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
    17 Desember 2011 22:51

Jawaban