Data into arrays in Metapost
![](https://secure.gravatar.com/avatar/72a25e5a86c2a62398bb1d0dbc12c973.jpg?s=120&d=mm&r=g)
12 Aug
2005
12 Aug
'05
1:25 a.m.
Hi, Is there a way to read an entire data set into an array in Metpost, something like: numeric coeffs[]; coeffs:=[1,2,3,4,5];
![](https://secure.gravatar.com/avatar/565476157eb3895a9c928ffce26d988d.jpg?s=120&d=mm&r=g)
12 Aug
12 Aug
10:23 a.m.
David Arnold wrote:
Hi,
Is there a way to read an entire data set into an array in Metpost, something like:
numeric coeffs[]; coeffs:=[1,2,3,4,5];
Not like this. You need to write a loop. Metaposts variables are not really arrays, merely objects with composite names of which the sub-parts are allowed to be numeric expressions. Taco
6913
Age (days ago)
6914
Last active (days ago)
1 comments
2 participants
participants (2)
-
David Arnold
-
Taco Hoekwater