Help for this page

Select Code to Download


  1. or download this
    my $a = sequence(10);
    print $a;
    ...
    my $b = pdl(2,5,7);
    print $b;
    [2,5,7]
    
  2. or download this
    my $z = which($a==$b(1));
    print $z;
    [3]
    
  3. or download this
    my $z = which($a==$b);