I have the following code:
ff={"a","b"}
Do[
mm[ff[[i]]]=RandomReal[];
,{i,Length@ff}]
Do[
DumpSave["D:\\"<>ToString@ff[[i]]<>".mx",mm[ff[[i]] ]];
,{i,Length@ff}]
This gives
DumpSave::bsnosym: mm[ff[[i]]] is not defined as a symbol or a context.
So obviously the mm[ ff[[i]] ] is not replace as needed when i is set to 1,2,... . The goal is to dump e.g. mm["a"] in a file called a.mx. And this with all the item in the list ff. Is there a way to get this done?
DumpSaveisHoldRestso see 7756 but are you aware thatDumpSave["test", mm["a"]]won't work anyway? – Kuba Aug 16 '17 at 11:02