Question: batch save

Question:batch save

casperyc 962 Maple

Hi,

I am trying to save batch of data into different of files.

for i to nops(a) do
save a[i], "key_[i].m"
od;

Error, save can only save names

 

i.e. save each element in "a" to the file named "key_i" (key_1,key_2,key_3,ect)

how should I write the code?

Thanks.

casper

Please Wait...