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]
In reply to Extracting info from matrix by Angharad
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |