I would like to create an empty array (with zeros) in which I would later (in a loop) copy the position of my game object. I know Matlab, so is this possible also in Unity/C#? If yes, how?

Something like that:

```
for (int i = 0; i < numberOfPoints; i++)
{
float functionXvalue = i * scaleInputRange / numberOfPoints; // scale number from [0 to 99] to [0 to 2Pi]
if (animate)
{
functionXvalue += Time.time * animSpeed;
}
newpos2=new Vector3(initialposition+(i*distanceFromEachOther2),ComputeFunction(functionXvalue) * scaleResult, 0);
plotPoints *.transform.position = newpos2;*
```

_ arraySpheresPos *= newpos2;*_

** n = n + 1;**

*The idea woud be that I have 3 columns for (x,y,z) and 1000 rows for each of the positions of my game objects.*

*Thank you for your help.*