Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

How to extract the best match from matrix

by jnarayan81 (Sexton)
on Mar 11, 2017 at 21:41 UTC ( [id://1184298]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    Name    f1    f2    f3    f4
    africa1    18    1    48    23
    ...
    usa1    55    20    56    25
    china1    35    37    55    87
    china2    40    33    50    73
    
  2. or download this
    use strict;
    use warnings;
    ...
    }
    
  3. or download this
    WITH NEAREST sub
    jitendra@jitendra-Aspire-S3-391[test] perl testMAT.pl mat.txt         
    +[10:17PM]
    ...
    nearest to 35 in array is: 33  and name is china2
    nearest to 59 in array is: 56  and name is usa1
    nearest to 70 in array is: 30  and name is africa3
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1184298]
Approved by stevieb
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2024-04-24 02:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found