When in comes to Scientific calculations it is always said to use MatLab. But there is one problem that MatLab is not free. Before going any further lets take a quick look at MatLab:
MATLAB is a numerical computing environment and fourth generation programming language. Developed by The MathWorks, MATLAB allows matrix manipulation, plotting of functions and data, implementation of algorithms, creation of user interfaces, and interfacing with programs in other languages. Although it is numeric only, an optional toolbox uses the MuPAD symbolic engine, allowing access to computer algebra capabilities. An additional package, Simulink, adds graphical multidomain simulation and Model-Based Design for dynamic and embedded systems.In 2004, MathWorks claimed that MATLAB was used by more than one million people across industry and the academic world.
Developer(s)
The MathWorks
Stable release
R2009b / September 4, 2009
Written in
C, Java
Operating system
Cross-platform
Type
Technical computing
License
Proprietary
So you can see that MatLab is not free and for a small Researcher or some small project maker it is really hard to afford its licence.
Now lets see what is octave.
Octave is a computer program for performing numerical computations. It is mostly compatible with MATLAB.As part of the GNU Project, it is free software under the terms of the GNU General Public License.
Technical details
- Octave is written in C++ using STL libraries.
- Octave uses an interpreter to execute the Octave scripting language.
- Octave is extensible using dynamically loadable modules.
- Octave interpreter works in tandem with gnuplot and Grace software to create plots, graphs, and charts, and to save or print them.
MATLAB compatibility
Octave has been built with MATLAB compatibility in mind, and shares many features with MATLAB:
- Matrices as fundamental data type.
- Built-in support for complex numbers.
- Powerful built-in math functions and extensive function libraries.
- Extensibility in the form of user-defined functions.
There are a few purposeful, albeit minor, difference:
- Comment lines can be prefixed with the # character as well as the % character
- Various C-based operators ++, --, +=, *=, /= are supported
- Elements can be referenced without creating a new variable, e.g. [1:10](3)
- Strings can be defined with the " character as well as the ' character
A small example command line code of octave:
octave:1> x.a = 1; x.b = [1, 2; 3, 4]; x.c = "string";octave:2> x.ax.a = 1octave:3> x.bx.b =
1 2 3 4
octave:4> x.cx.c = string
-
Installing Octave is very easy in Ubuntu and Fedora by using the given repositories.You can compile and install it also with Gnuplot.
I suggest to every small scale developer/ researcher you must give this software a try.
No comments:
Post a Comment