Thread Closed

Data Storage in Mathematica

 
Share Thread Thread Tools
Sep21-08, 07:07 PM   #1
 

Data Storage in Mathematica


Hi,
Im a pretty decent matlab and maple user and now Im starting to use mathematica, because I've heard good things about it. I had some simple questions about it that I was hoping someone could answer.

1.) What is the best way to store data in mathematica? Do people use matricies like in matlab, or is there some better way.
2.) How does indexing work?
3.) Is there some sort of way to get a 'command line' to try out commands before using them in your script?

If anyone could help me out with these questions I would appreciate it grealty. Also sorry if htese are bad questions, like i said, im a beginner.
 
PhysOrg.com
PhysOrg
science news on PhysOrg.com

>> Heat-related deaths in Manhattan projected to rise
>> Dire outlook despite global warming 'pause': study
>> Sea level influenced tropical climate during the last ice age
Sep21-08, 07:19 PM   #2
 
I just realized that there is a math program section. If the mods could move it there I would appreciate it. Sorry about that!
 
Sep21-08, 07:20 PM   #3
 
Mentor
Hi EngageČ

Mathematica has sparse matrices, which can reduce the data size considerably if the matrix is reasonably sparse. Otherwise you can use DumpSave to get a reasonably compressed storage of all variables in memory. In general, indexing access is faster and more compact than iteratively building up an array. Typically you should use arrays and matrices primarily when the size is fixed and known in advance.

The notebook interface is essentially a command-line interface, so I am not sure what you are after.
 
Sep21-08, 07:36 PM   #4
 

Data Storage in Mathematica


Thank you for the quick reply! Yeah, I know it is just like a command line, i guess I was looking for another window to execute commands. It was my plan to use the notebook as a place to write scripts and try out little chunks in a separate area.

But my data will definitely have fixed size. Is there any easy way to call up a cell in an array or matrix? Right now I'm trying to write a loop that will fill up a fixed matrix or an array, cell by cell.
 
Sep21-08, 08:02 PM   #5
 
Mentor
The command "Table" will fill an array or matrix. If x is an array then x[[i]] will access the i'th element.
 
Sep21-08, 08:05 PM   #6
 
That is exactly what i was looking for. Thank you so much for the help!
 
Thread Closed
Thread Tools


Similar Threads for: Data Storage in Mathematica
Thread Forum Replies
Energy storage. General Engineering 85
plotting data in mathematica Math & Science Software 12
3D Data Plots in Mathematica 5.2 Math & Science Software 0
storage in incubator? Biology 2
Realize professional data management with TechRepublic's Guide to Data Storage Design Computing & Technology 0