comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » assign an array to an element in another array
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
assign an array to an element in another array [message #90644] Thu, 19 March 2015 16:37 Go to previous message
lucesmm is currently offline  lucesmm
Messages: 26
Registered: October 2014
Junior Member
Hello
This is problem I have now,
my data now looks like this
10 94 30 63 0.248019426 240 75
91 29 24 74 0.177277796 418 98
129 27 25 86 0.959739977 268 92
140 17 26 85 0.812485863 457 84
152 71 20 55 0.384820239 369 83
176 68 27 104 0.295040055 211 57
196 89 21 79 0.841609784 278 89
292 100 28 87 0.547060688 309 96
420 58 24 99 0.21125357 311 77
459 17 24 84 0.687962261 229 65
478 79 23 73 0.811294052 219 96
498 65 27 79 0.869434322 447 59
573 65 23 89 0.009937773 209 67
585 54 21 95 0.074036581 283 103
627 76 30 104 0.444237881 275 77
636 32 24 93 0.588080971 232 74
646 18 20 74 0.206121808 278 104
759 23 20 102 0.799160185 276 77
763 16 20 81 0.427796559 226 93
783 59 30 101 0.416701726 255 79
801 66 20 86 0.60898004 346 93
832 84 29 58 0.160208725 219 55
900 8 23 67 0.872238518 411 92
949 91 20 91 0.393444055 490 66
997 15 27 82 0.058078121 399 60

I want to create 25 seprate vectors naming them with the forst element of each row... like this

vec10= [94 30 63 0.248019426 240 75]

vec91= [29 24 74 0.177277796 418 98]

vec129= [27 25 86 0.959739977 268 92]

vec140= [17 26 85 0.812485863 457 84]

vec152= [71 20 55 0.384820239 369 83]

vec176= [68 27 104 0.295040055 211 57]

vec196= [89 21 79 0.841609784 278 89]

vec292= [100 28 87 0.547060688 309 96]

vec420= [58 24 99 0.21125357 311 77]
...

how can I extract this values individually and then add the "VEC" portion to the name?

I have tried "foreach" , I have try to convert them to strings and add them together, and nothing yet.


Thank you

-LM*M
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: IDL Array Indices Command
Next Topic: IMSL won't load

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 11:33:43 PDT 2025

Total time taken to generate the page: 0.00428 seconds