Skip to main content
16 events
when toggle format what by license comment
Oct 13, 2012 at 6:08 history tweeted twitter.com/#!/StackMma/status/256999821393670144
Oct 12, 2012 at 14:44 answer added Mr.Wizard timeline score: 7
Oct 12, 2012 at 14:09 comment added rm -rf I agree with Sjoerd and acl. All that the OP is looking for here is for the subtle difference between MATLAB and Mathematica. In MATLAB, saving the function/script file ==> function is in your workspace, but not so in Mathematica. Mr.Wizard's answer definitely answers all of the save/load questions and should be linked to, but the OP just needs a simple clarification of the difference here.
S Oct 12, 2012 at 14:07 history edited CommunityBot
remove duplicate link
S Oct 12, 2012 at 14:07 history reopened rm -rf
Oct 12, 2012 at 12:09 comment added Sjoerd C. de Vries mr.wizard That answer is focussed at definitions involving an Interpolation. I believe the OP is confused about MMA's execution model and Yves' answer in the comment above is spot on.
Oct 12, 2012 at 5:51 history edited lachis83 CC BY-SA 3.0
added 8 characters in body
S Oct 12, 2012 at 5:42 history edited CommunityBot
insert duplicate link
S Oct 12, 2012 at 5:42 history closed Mr.Wizard exact duplicate
Oct 12, 2012 at 5:22 comment added Yves Klett The workflow in Mathematica is slightly different. By default, your code cells are not evaluated automatically when you open a notebook. You can have a look at the use of initialization cells and packages which allow for automated evaluation.
Oct 12, 2012 at 4:08 comment added jens_bo Do you want these functions to be defined in every notebook you open or only in this specific notebook?
Oct 12, 2012 at 3:55 history edited rm -rf CC BY-SA 3.0
deleted 19 characters in body
Oct 12, 2012 at 3:53 comment added rm -rf Look up Put, PutAppend, Save, DumpSave and Get in the documentation. That should give you enough to get started. There are several ways to do it in Mathematica — initialization cells, Put/Get, and in more advanced cases, using packages. In your case, the function definition (as you've written it) should still be available in the saved notebook (assuming you didn't delete the cell); just that the kernel doesn't know about it. All you need to do then is to reevaluate the cell.
Oct 12, 2012 at 3:49 history edited lachis83 CC BY-SA 3.0
added 1 characters in body
Oct 12, 2012 at 3:45 review First posts
Oct 12, 2012 at 5:45
Oct 12, 2012 at 3:44 history asked lachis83 CC BY-SA 3.0