Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Mathematica equivalent of MATLAB

  1. Mar 12, 2010 #1
    Hey folks :smile:

    I just got my student copy of Mathematica 7 and I am really excited to get started. I have some MATLAB m-files that I want to replicate in Mathematica to help me get the syntax.

    I am a little confused as to where to start writing it though... In MATLAB, you can write a code in an m-file and then go to the command window and call it whenever necessary so long as the m-file is in the current working directory. I would like to the Mathematica equivalent now, but I am not sure where to write my code?

    Is this possible? Can I write my code as its own separate file and then call it from elsewhere in Mathematica?

    Sorry for the noob question, but I just want to get started! :Smile:

  2. jcsd
  3. Mar 12, 2010 #2


    Staff: Mentor

    Yes, it is called a "package". There is a decent amount of information in the online help about using other packages and building your own.
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook