Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

I DumpSaved some data from my home laptop, uploaded it onto google drive and now I am trying to open it at my school computer but I am getting errors, even though the data is in the correct directory. My data is bunch of data for different parameter values that I have stored as a function.

out[] := Cases[DownValues[out], _String, Infinity]
out[ToString[DataStep1[[l, 3]]]] = outNR
DumpSave["Renegotiation.mx", out]
<< Renegotiation.mx

The data can be found here:

The details of DumpSave says that "Files written by DumpSave can only be read on the same type of computer system on which they were written."

What is a "type of computer system" ? Both my laptops are PCs with windows. Is there no way for me to read my data at the school laptop? In any event, can you please suggest how I can store data that I can open on different computers?

share|improve this question
1  
A "type of computer system" is like a "kind" of animal in the book of Genesis... it means whatever someone wants it to mean in order for it to be a convenient excuse. :) Practically speaking, the platform, processor type (32- or 64-bit), and Mathematica version all need to match for the .mx files to be mutually intelligible. I'm not certain whether revision or build numbers matter as I haven't tested that but I would suspect revision does and build doesn't. –  Oleksandr R. May 1 '13 at 2:44

1 Answer 1

up vote 4 down vote accepted

Use Save - it works like DumpSave, except the output is not binary encoded, and is transportable from system to system, (different operating systems / Mathematica versions, to an extent).

out[] := Cases[DownValues[out], _String, Infinity]
out[ToString[DataStep1[[l, 3]]]] = outNR
Save["Renegotiation.sav", out]
<< Renegotiation.sav

Docs: http://reference.wolfram.com/mathematica/ref/Save.html

NB c/w DumpSave: http://stackoverflow.com/a/7896522/879601

share|improve this answer
1  
WDX format is another option, arguably more useful if you want to preserve structures like packed arrays, images, and compressed objects (e.g. graphics) without having to translate them into their FullForm and back. –  Oleksandr R. May 1 '13 at 2:47
    
Chris: Thanks a lot for your answer! –  Amatya May 5 '13 at 20:26

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.