hi...... I have written a Notebook.nb file which generates a vector according to certain criteria.... and I need to repeatly re-import the last value (the vector) from the notebook, and the vector is kinda-random (so I need to rerun the first file each time I call it in my new code) and then average it in this new notebook. (Below is the entire code, minus the file being imported). AverageSoln= 0; Experiments= 10; For[Calculations = 0, Calculations < Experiments, Import["Notebook.m"]; AverageSoln= AverageSoln + %, Calculations++] AverageSoln= Mean[AverageSoln]; I'm having difficulty getting it to work, as my computer is saying its not a Mathematica file?! But I also have Matlab on my computer and was under the impression that I needed to convert the file to a Mathematica package file (takes the form Package.m) to work; is it possible that Matlab is not letting Mathematica access this file as it has the file.m format? Also is my short algorithm possibly just wrong and causing the problem?