MATLAB Mathematica equivalent of MATLAB

Click For Summary
Mathematica allows users to create and utilize "packages," which are similar to MATLAB's m-files. Users can write their code in separate files and call them from other parts of Mathematica, just like in MATLAB. The online help resources provide guidance on using existing packages and creating custom ones. This functionality enables a smooth transition for those familiar with MATLAB syntax. Getting started with packages is essential for effectively using Mathematica.
Saladsamurai
Messages
3,009
Reaction score
7
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:

~Casey
 
Physics news on Phys.org
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.
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
3
Views
4K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 4 ·
Replies
4
Views
1K