Hello world!
I am a noob and wondering if anyone can help me with this problem.
I have multiple seeds in a simulation that output the same data filenames.
I would like to import all the data files from a structure like this:
path1/ seed_0001/Ca_cyt.dat
path1/ seed_0002/Ca_cyt.dat
path1/ seed_0003/Ca_cyt.dat
path1/ seed_000n/Ca_cyt.dat
I'm not sure if it is possible to loop over the entries, creating some variable name that corresponds seed numbers so I can individually use the data files if I need to (ex. seed 1 vs. seed 2)
The real issue is that the data overwrites itself when you import something with the same name.
I would like to set up a calculation to average the values of the data file over a time series (average of time-series of calcium from seeds 1,2,3…n)
Lastly, I would like to compare the averages of different situations.
Like:
path1/seed_0001/Ca_cyt.dat
path2/seed_0001/Ca_cyt.dat
path3/seed_0001/Ca_cyt.dat
My final issue: the length of some of the matrices are not the same. I've tried using something like (length(x)) to define the calculation and am having horrible luck getting it to plot them comparatively using the same X value of time.
Best Answer