Question: Is there a Maple function to extract one dimension of a 3-dimensional array and save it in a Vector?

Hello,

I have got the following problem:

my data is stored in 3-dimensional arrays but I need my data as Vectors in order to call the function FourierTransform.

Right now I transform it by hand like this (my data is stored in the 3-dimensional array fArray):

fVector11:=Vector(N):
fVector12:=Vector(N):
fVector21:=Vector(N):
fVector22:=Vector(N):

for k from 1 by 1 to N do
fVector11[k]:=fArray[1,1,k]:
fVector12[k]:=fArray[1,2,k]:
fVector21[k]:=fArray[2,1,k]:
fVector22[k]:=fArray[2,2,k]:
...
end do:

Is there a better way in Maple? I think I need something like the :-Operator in Matlab? I have got the problem that my solution is not extendable if I have more dimensions.

Thanks in advance for any help
Jan

 

 

 

 

Please Wait...