Extracting Data + Matrix in LAMMPS

Hello
I’ve written my program in a for loop which generates
constants with variable names like c11${dd} which dd in each loop differs.
Although all variables exist in LAMMPS, but I can’t extract them all at the end of run.
Is there any way to put them all in a matrix or vector?
So far I’ve used print command to show them at the end of run, but if there is an alternative I’m interested to use it.
Using print command I should spend so much time over putting the log file in an excel format then copy+paste the variables one by one.
It’s a time consuming process.
Basically, is it possible to define a matrix or vector in LAMMPS with variable arrays?
If yes then how could we export and show it? and If no what should I do?
Thanks.

You can use variables as input to the fix ave/time command
which can then output them to a file (as well as other stuff
if you like). That would be no different than putting
them into a vector (no such command exists in LAMMPS),
and then outputting them with fix ave/time.

Steve