Student Support Forum: 'Convert list of rules to matrix' topicStudent Support Forum > General > Archives > "Convert list of rules to matrix"

 Next Comment > Help | Reply To Topic
 Author Comment/Response kevin.w 07/10/13 05:51am Hi all I have the results from NDSolve, and it is in the form of ``list of rules'' In[157]:= SS = NSolve[DA == 0 && DB == 0 && DC == 0 && DD == 0, {A, B, C, D}] Out[157]= {{A -> 46437., B -> 25091.7, C -> 96620.4, D -> 13557.5}, {A -> -217685., B -> 161155., C -> 104625., D -> -119304.}, {A -> -0.278772, B -> 0.351899, C -> 0.425027, D -> 0.818112}, {A -> 0.492067, B -> -0.439226, C -> -0.386384, D -> 1.28467}, {A -> 0.125003, B -> 1., C -> 0., D -> 0.}} I want to turn this ``list of rules'' into a matrix of numerical values, i.e. a matrix like this: {{46437., 25091.7, 96620.4, 13557.5}, {-217685., 161155., 104625., -119304.}, {-0.278772, 0.351899, 0.425027, 0.818112}, {0.492067, -0.439226, -0.386384, 1.28467}, {0.125003, 1., 0., 0.}} Could someone teach me how to do this? Thanks a lot! URL: ,

 Subject (listing for 'Convert list of rules to matrix') Author Date Posted Convert list of rules to matrix kevin.w 07/10/13 05:51am Re: Convert list of rules to matrix Bill Simpson 07/10/13 12:13pm Re: Convert list of rules to matrix Peter Pein 07/11/13 07:36am
 Next Comment > Help | Reply To Topic