Angharad has asked for the wisdom of the Perl Monks concerning the following question:
What I am now trying to do is to extract the three values from matrix b and assign them as three different variables. My first thought was to copy the contents of the matrix into an array and then use substr. This works up to a point but the finished program will be dealing with a number of matrices for which svd will have to be performed, so a general substr approach wont work (as the number of decimal places will vary with each calculation). I'm guessing that I might be able to extract the data using regular expressions instead? Any suggestions much appreciated[0.97069051 0.57504129 0.09337227 0.012809204]
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Extracting info from matrix
by injunjoel (Priest) on Aug 10, 2005 at 20:25 UTC | |
|
Re: Extracting info from matrix
by shemp (Deacon) on Aug 10, 2005 at 19:18 UTC | |
|
Re: Extracting info from matrix
by tall_man (Parson) on Aug 10, 2005 at 19:24 UTC |